Skip to content

Commit a36e361

Browse files
committed
Fix releaser.yml
1 parent 5d51c45 commit a36e361

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/releaser.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,46 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: startsWith(github.ref, 'refs/tags/v')
1212
steps:
13+
- name: "Get the version"
14+
id: get_version
15+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
16+
17+
- name: "Download Release Asset - HTML"
18+
uses: soukvm/action-download-asset@master
19+
with:
20+
repo: pyansys/pydpf-post
21+
file: HTML-doc-ansys-dpf-post.zip
22+
unpack: true
23+
out: ./HTML-doc-ansys-dpf-post/
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
1326
- name: "Deploy to gh-pages"
1427
uses: JamesIves/github-pages-deploy-action@v4
1528
with:
16-
folder: docs/build/html
29+
folder: HTML-doc-ansys-dpf-post/
1730
token: ${{secrets.PYANSYS_CI_BOT_TOKEN}}
1831
branch: gh-pages
1932
git-config-name: pyansys-ci-bot
2033
git-config-email: [email protected]
2134
repository-name: pyansys/DPF-Post-docs
22-
commit-message: Documentation generated for ${{ env.RELEASE }}
35+
commit-message: Documentation generated for ${{ steps.get_version.outputs.VERSION }}
2336
clean-exclude: "CNAME"
24-
tag: ${{ env.RELEASE }}
37+
tag: ${{ github.ref }}
2538

2639
Publish_to_PyPi:
2740
name: Publish to PyPi
2841
runs-on: ubuntu-latest
2942
if: startsWith(github.ref, 'refs/tags/v')
3043
steps:
31-
- name: Download Release Asset - whl
32-
uses: dsaltares/fetch-gh-release-asset@master
44+
- name: "Download Release Asset - whl"
45+
uses: dsaltares/fetch-gh-release-asset@1.0.0
3346
with:
34-
version: tags/${{ env.RELEASE }}
3547
file: '*.whl'
3648
token: ${{ secrets.GITHUB_TOKEN }}
3749

38-
- name: Download Release Asset - tar.gz
39-
uses: dsaltares/fetch-gh-release-asset@master
50+
- name: "Download Release Asset - tar.gz"
51+
uses: dsaltares/fetch-gh-release-asset@1.0.0
4052
with:
41-
version: tags/${{ env.RELEASE }}
4253
file: '*.tar.gz'
4354
token: ${{ secrets.GITHUB_TOKEN }}
4455

0 commit comments

Comments
 (0)