Skip to content

Commit ce87a18

Browse files
author
Owen Jones
committed
Updates to pipeline
1 parent d9272dd commit ce87a18

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ jobs:
1515
strategy:
1616
max-parallel: 1
1717
steps:
18+
19+
- name: Display tag name
20+
run: echo "Tag name is ${{ github.event.release.name }}"
21+
22+
- name: Is TEST RELEASE
23+
if: ${{ startsWith('test-',github.event.release.name) }}
24+
run: echo "Is test release ${{ startsWith('test-',github.event.release.name) }}"
25+
1826
- name: Checkout
1927
uses: actions/checkout@v2
28+
2029
- name: Retrieve wheel artifacts for release
2130
uses: dawidd6/action-download-artifact@v2
2231
with:
@@ -25,6 +34,7 @@ jobs:
2534
workflow: build.yml
2635
path: ./dist
2736
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
2838
- name: Retrieve SDIST artifacts for release
2939
uses: dawidd6/action-download-artifact@v2
3040
with:
@@ -40,7 +50,7 @@ jobs:
4050
working-directory: ./dist
4151

4252
- name: Release code as new release on Pypi
43-
if: ${{ startsWith('v', github.event.release.name) }}
53+
if: ${{ startsWith(github.event.release.name, 'v') }}
4454
uses: pypa/gh-action-pypi-publish@release/v1
4555
with:
4656
user: __token__

0 commit comments

Comments
 (0)