Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ jobs:

# Skipping because it is installed locally.
# - name: Setup Python
# uses: actions/setup-python@v4.3.2
# uses: actions/setup-python@v4
# with:
# python-version: 3.9

Expand Down Expand Up @@ -551,18 +551,33 @@ jobs:
needs: [docs_build, build_test, smoke-tests]
runs-on: ubuntu-latest
steps:

- name: "Release to the public PyPI repository"
uses: pyansys/actions/release-pypi-public@v3.0.1
- name: Set up Python
uses: actions/setup-python@v4
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: "__token__"
twine-token: ${{ secrets.PYPI_TOKEN }}
python-version: 3.9

- uses: actions/download-artifact@v3

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

- name: "Release to GitHub"
uses: pyansys/actions/release-github@v3.0.1
uses: softprops/action-gh-release@v1
with:
library-name: ${{ env.PACKAGE_NAME }}
files: |
./**/*.whl
./**/*.tar.gz
./**/*.pdf
./**/*.zip

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

- name: "Notify if fail"
uses: skitionek/notify-microsoft-teams@master
Expand Down