Skip to content

Commit

Permalink
Updates to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Jones committed Jul 27, 2023
1 parent d9272dd commit ce87a18
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ jobs:
strategy:
max-parallel: 1
steps:

- name: Display tag name
run: echo "Tag name is ${{ github.event.release.name }}"

- name: Is TEST RELEASE
if: ${{ startsWith('test-',github.event.release.name) }}
run: echo "Is test release ${{ startsWith('test-',github.event.release.name) }}"

- name: Checkout
uses: actions/checkout@v2

- name: Retrieve wheel artifacts for release
uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -25,6 +34,7 @@ jobs:
workflow: build.yml
path: ./dist
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Retrieve SDIST artifacts for release
uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -40,7 +50,7 @@ jobs:
working-directory: ./dist

- name: Release code as new release on Pypi
if: ${{ startsWith('v', github.event.release.name) }}
if: ${{ startsWith(github.event.release.name, 'v') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit ce87a18

Please sign in to comment.