Skip to content

Commit bf43de3

Browse files
committed
try using github.ref_name to get tag str
See #573
1 parent 1550643 commit bf43de3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/CI.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818

1919
steps:
2020

21-
- name: Set vars
22-
id: vars
23-
# 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/
24-
run: echo "name=tag::${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
21+
# - name: Set vars
22+
# id: vars
23+
# # 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/
24+
# #run: echo "name=tag::${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT # does this not work?
25+
# run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
2526

2627
- name: Checkout code
2728
uses: actions/[email protected]
@@ -151,7 +152,7 @@ jobs:
151152
152153
- name: Deploy Documentation for master
153154
if: matrix.gcc_v == 7 && github.ref == 'refs/heads/master'
154-
uses: JamesIves/github-pages-deploy-action@4.1.3
155+
uses: JamesIves/github-pages-deploy-action@v4.6.1
155156
with:
156157
branch: gh-pages # The branch the action should deploy to.
157158
folder: doc # The folder the action should deploy.
@@ -171,11 +172,11 @@ jobs:
171172
172173
- name: Deploy documentation for tagged release
173174
if: matrix.gcc_v == 7 && startsWith(github.ref, 'refs/tags/')
174-
uses: JamesIves/github-pages-deploy-action@v4.4.1
175+
uses: JamesIves/github-pages-deploy-action@v4.6.1
175176
with:
176177
branch: gh-pages # The branch the action should deploy to.
177178
folder: doc # The folder the action should deploy.
178-
target-folder: prev/${{ steps.vars.outputs.tag }} # deploy to a version-specific folder
179+
target-folder: prev/${{github.ref_name}} # deploy to a version-specific folder
179180

180181
- name: Upload coverage
181182
if: matrix.gcc_v == 7

0 commit comments

Comments
 (0)