Skip to content

Commit

Permalink
Use env context (#13)
Browse files Browse the repository at this point in the history
* Use env context

* Inline value
  • Loading branch information
carlthome authored Oct 22, 2023
1 parent e20ca27 commit f624352
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
branches:
- main

env:
PACKAGE_NAME: audioscrape

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -27,20 +24,20 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: $PACKAGE_NAME
package-name: audioscrape

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

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

0 comments on commit f624352

Please sign in to comment.