Skip to content

Commit

Permalink
feat: prepare for public release (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue authored Jul 11, 2023
1 parent 5bdea46 commit eb8b5b1
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ jobs:
retention-days: 60
if-no-files-found: error

# TO BE ACTIVATED ONCE PROJECT GOES PUBLIC
#
# - name: Upload coverage to Codecov
# if: env.MAIN_PYTHON_VERSION == matrix.python-version
# uses: codecov/codecov-action@v3
- name: Upload coverage to Codecov
if: env.MAIN_PYTHON_VERSION == matrix.python-version
uses: codecov/codecov-action@v3

docs:
name: Build docs
Expand Down Expand Up @@ -139,24 +137,12 @@ jobs:
needs: [package]
runs-on: ubuntu-latest
steps:
# TO BE DELETED ONCE PROJECT GOES PUBLIC
#
- name: Release to the private PyPI repository
uses: ansys/actions/release-pypi-private@v4
if: ${{ !env.ACT }}
- name: Release to the public PyPI repository
uses: ansys/actions/release-pypi-public@v4
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: "__token__"
twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}

# TO BE ACTIVATED ONCE PROJECT GOES PUBLIC
#
# - name: Release to the public PyPI repository
# uses: ansys/actions/release-pypi-public@v4
# with:
# library-name: ${{ env.PACKAGE_NAME }}
# twine-username: "__token__"
# twine-token: ${{ secrets.PYPI_TOKEN }}
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: Release to GitHub
uses: ansys/actions/release-github@v4
Expand Down

0 comments on commit eb8b5b1

Please sign in to comment.