Skip to content

Commit

Permalink
Set PACKAGE_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthome committed Dec 12, 2023
1 parent f624352 commit 61ea8c6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,34 @@ concurrency:
permissions:
id-token: write

env:
PACKAGE_NAME: audioscrape

jobs:
test:
if: ${{ github.event_name == 'pull_request' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: audioscrape
package-name: ${{ env.PACKAGE_NAME }}

pre-release:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: audioscrape
package-name: ${{ env.PACKAGE_NAME }}
package-index-name: TestPyPI
package-index-url: https://test.pypi.org/legacy
package-index-url: https://test.pypi.org
package-index-upload-url: https://test.pypi.org/legacy/
secrets:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

release:
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: audioscrape
package-name: ${{ env.PACKAGE_NAME }}
package-index-name: PyPI
package-index-url: https://pypi.org
package-index-upload-url: https://upload.pypi.org/legacy/
secrets:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 61ea8c6

Please sign in to comment.