Skip to content

Commit

Permalink
Merge branch 'main' into release/0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Nov 3, 2023
2 parents a957f8c + 78e0523 commit 43811be
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,34 +105,29 @@ jobs:
with:
path: ./wheelhouse/*.whl

Release:
release:
name: Release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
needs: [build, mac_build]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mapdl-archive
permissions:
id-token: write # this permission is mandatory for trusted publishing
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

# this downloads all artifacts
- uses: actions/download-artifact@v3

- name: Display structure of downloaded files
run: ls -R

- name: Upload to Public PyPi
- name: Move wheels to dist
run: |
pip install twine
twine upload --skip-existing ./**/*.whl
twine upload --skip-existing ./**/*.tar.gz
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

- name: Release
mkdir -p dist/
find . -name "*.whl" -exec mv {} dist/ \;
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
./**/*.whl
./**/*.whl
1 change: 1 addition & 0 deletions mapdl_archive/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@
python_requires=">=3.8",
keywords="vtk MAPDL ANSYS cdb",
package_data={
"mapdl_archive": ["py.typed"],
"mapdl_archive.examples": [
"TetBeam.cdb",
"HexBeam.cdb",
"sector.cdb",
]
],
},
install_requires=["pyvista>=0.41.1"],
)

0 comments on commit 43811be

Please sign in to comment.