Skip to content

Commit

Permalink
try using github.ref_name to get tag str
Browse files Browse the repository at this point in the history
See #573
  • Loading branch information
jacobwilliams committed Jun 12, 2024
1 parent 1550643 commit bf43de3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit bf43de3

Please sign in to comment.