From 61ea8c675d5d04bfcee768fc2dc59decdfec3668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Wed, 13 Dec 2023 00:27:22 +0100 Subject: [PATCH] Set PACKAGE_NAME --- .github/workflows/ci.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 98c34f8..feadfd0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 }}