-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try using github.ref_name to get tag str
See #573
- Loading branch information
1 parent
1550643
commit bf43de3
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,11 @@ jobs: | |
|
||
steps: | ||
|
||
- name: Set vars | ||
id: vars | ||
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} # this is depreciated: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ | ||
run: echo "name=tag::${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
# - name: Set vars | ||
# id: vars | ||
# # run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} # this is depreciated: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ | ||
# #run: echo "name=tag::${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT # does this not work? | ||
# run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
|
||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
@@ -151,7 +152,7 @@ jobs: | |
- name: Deploy Documentation for master | ||
if: matrix.gcc_v == 7 && github.ref == 'refs/heads/master' | ||
uses: JamesIves/github-pages-deploy-action@4.1.3 | ||
uses: JamesIves/github-pages-deploy-action@v4.6.1 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: doc # The folder the action should deploy. | ||
|
@@ -171,11 +172,11 @@ jobs: | |
- name: Deploy documentation for tagged release | ||
if: matrix.gcc_v == 7 && startsWith(github.ref, 'refs/tags/') | ||
uses: JamesIves/github-pages-deploy-action@v4.4.1 | ||
uses: JamesIves/github-pages-deploy-action@v4.6.1 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: doc # The folder the action should deploy. | ||
target-folder: prev/${{ steps.vars.outputs.tag }} # deploy to a version-specific folder | ||
target-folder: prev/${{github.ref_name}} # deploy to a version-specific folder | ||
|
||
- name: Upload coverage | ||
if: matrix.gcc_v == 7 | ||
|