Skip to content

Commit 7057e8b

Browse files
committed
Fix PyPi publication
1 parent 35668b9 commit 7057e8b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/releaser.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: startsWith(github.ref, 'refs/tags/v')
1212
steps:
13+
- uses: actions/checkout@v3
14+
1315
- name: "Get the version"
1416
id: get_version
1517
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
@@ -36,13 +38,19 @@ jobs:
3638
repository-name: pyansys/DPF-Post-docs
3739
commit-message: Documentation generated for ${{ steps.get_version.outputs.VERSION }}
3840
clean-exclude: "CNAME"
39-
tag: ${{ github.ref }}
41+
tag: ${{ steps.get_version.outputs.VERSION }}
4042

4143
Publish_to_PyPi:
4244
name: Publish to PyPi
4345
runs-on: ubuntu-latest
4446
if: startsWith(github.ref, 'refs/tags/v')
4547
steps:
48+
- uses: actions/checkout@v3
49+
50+
- name: "Get the version"
51+
id: get_version
52+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
53+
4654
- name: "Download Release Asset - whl"
4755
uses: dsaltares/[email protected]
4856
with:
@@ -51,11 +59,11 @@ jobs:
5159
regex: true
5260

5361
- name: "Download Release Asset - tar.gz"
54-
uses: dsaltares/fetch-gh-release-[email protected]
62+
uses: robinraju/release-[email protected]
5563
with:
56-
file: ".*.tar.gz"
64+
tag: ${{ steps.get_version.outputs.VERSION }}
65+
tarBall: true
5766
token: ${{ secrets.GITHUB_TOKEN }}
58-
regex: true
5967

6068
- name: "Upload to Public PyPi"
6169
run: |

0 commit comments

Comments
 (0)