Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
inumanag authored Jul 18, 2024
1 parent 189aa88 commit c750ae6
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
runs-on: ${{ matrix.os }}
name: Codon CI
needs: [ release ]
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -232,19 +234,14 @@ jobs:
name: ${{ matrix.os }}-x86_64
path: codon-linux-x86_64.tar.gz

- name: Publish on TestPyPI
if: github.ref == 'refs/heads/develop' && startsWith(matrix.os, 'ubuntu')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
# - name: Publish on TestPyPI
# if: github.ref == 'refs/heads/develop' && startsWith(matrix.os, 'ubuntu')
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/
# skip-existing: true

- name: Publish Package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(matrix.os, 'ubuntu')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit c750ae6

Please sign in to comment.