Skip to content

Commit

Permalink
singular artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmkenney committed Oct 12, 2023
1 parent d9c588c commit 8febdba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# as an artifact to later be used during deployment to
# PyPI
build:
name: "Build $PACKAGE_NAME"
name: Build ${{ vars.PACKAGE_NAME }}
if: github.repository == ${{ vars.REPO_OWNER}}/${{ vars.REPO_NAME }}
runs-on: ubuntu-latest

Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
# Publish the resulting artifact from the above job to
# the main PyPI repository.
publish-to-pypi:
name: "Publish $PACKAGE_NAME to PyPI"
name: Publish ${{ vars.PACKAGE_NAME }} to PyPI
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
Expand All @@ -68,15 +68,15 @@ jobs:

steps:
- name: Downlaod build artifacts
uses: actions/download-artifacts@v3
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: "Publish $PACKAGE_NAME to PyPI"
- name: Publish ${{ vars.PACKAGE_NAME }} to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish-to-testpypi:
name: "Publish $PACKAGE_NAME to TestPyPI"
name: Publish ${{ vars.PACKAGE_NAME }} to TestPyPI
if: |
github.repository == ${{ vars.REPO_OWNER }}/${{ vars.REPO_NAME }} &&
github.event_name == 'push' &&
Expand All @@ -95,12 +95,12 @@ jobs:

steps:
- name: Downlaod build artifacts
uses: actions/download-artifacts@v3
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: "Publish $PACKAGE_NAME to TestPyPI"
- name: Publish ${{ vars.PACKAGE_NAME }} to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down

0 comments on commit 8febdba

Please sign in to comment.