Skip to content

Commit

Permalink
Trying something different to get the tag right.
Browse files Browse the repository at this point in the history
  • Loading branch information
klust committed Mar 8, 2024
1 parent 8c6b5ba commit ff2cb9e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/push-deploy-main-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ jobs:
- name: Checkout specific tags.
run: |
git config --global advice.detachedHead false
cd $GITHUB_WORKSPACE/LUMI-SoftwareStack && git checkout tags/${{ github.event.ref }}
cd $GITHUB_WORKSPACE/LUMI-EasyBuild-contrib && git checkout tags/${{ github.event.ref }}
cd $GITHUB_WORKSPACE/LUMI-EasyBuild-containers && git checkout tags/${{ github.event.ref }}
tag=${{ github.event.ref }}
tag=${tag##*tags/}
cd $GITHUB_WORKSPACE/LUMI-SoftwareStack && git checkout tags/$tag
cd $GITHUB_WORKSPACE/LUMI-EasyBuild-contrib && git checkout tags/$tag
cd $GITHUB_WORKSPACE/LUMI-EasyBuild-containers && git checkout tags/$tag
- name: set up Python
uses: actions/setup-python@v4
Expand All @@ -61,9 +63,13 @@ jobs:
# We do a build first to ensure that building works as expected.
# We don't use --strict as we do want to ignore some warnings.
run: |
cd LUMI-EasyBuild-docs && make build TAG=${{ github.event.ref }}
tag=${{ github.event.ref }}
tag=${tag##*tags/}
cd LUMI-EasyBuild-docs && make build TAG=$tag
- name: deploy docs
run: |
cd LUMI-EasyBuild-docs && make deploy-origin TAG=${{ github.event.ref }}
tag=${{ github.event.ref }}
tag=${tag##*tags/}
cd LUMI-EasyBuild-docs && make deploy-origin TAG=$tag

0 comments on commit ff2cb9e

Please sign in to comment.