Skip to content

Commit

Permalink
Go back to a single job for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Jones committed Jul 26, 2023
1 parent 5164681 commit a73e975
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:

retrieve_artifacts:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
steps:
- name: Retrieve wheel artifacts for release
uses: dawidd6/action-download-artifact@v2
Expand All @@ -18,22 +20,18 @@ jobs:
workflow: build.yml
path: ./dist
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Retrieve SDIST artifacts for release
# uses: dawidd6/action-download-artifact@v2
# with:
# name: ${{ github.event.release.name }}-sdist
# repo: ${{ github.repository }}
# workflow: build.yml
# path: ./dist
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Retrieve SDIST artifacts for release
uses: dawidd6/action-download-artifact@v2
with:
name: ${{ github.event.release.name }}-sdist
repo: ${{ github.repository }}
workflow: build.yml
path: ./dist
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Display structure of downloaded files
run: ls -R
working-directory: ./dist

deploy:
needs: retrieve_artifacts
runs-on: ubuntu-latest
steps:
- name: Release code as new release on Pypi
if: ${{ startsWith(github.event.release.name,'v') }}
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit a73e975

Please sign in to comment.