From bf43de3b002c859d0b04a1e84b264a694b0539e9 Mon Sep 17 00:00:00 2001 From: Jacob Williams Date: Tue, 11 Jun 2024 22:35:29 -0500 Subject: [PATCH] try using github.ref_name to get tag str See #573 --- .github/workflows/CI.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dc921acafe..996130ca05 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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/checkout@v4.1.6 @@ -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