Skip to content

Commit

Permalink
Merge pull request #138 from DrDaveD/pick137
Browse files Browse the repository at this point in the history
Fix workflow for new site (1.2)
  • Loading branch information
DrDaveD authored Nov 13, 2023
2 parents cc0dedd + 7f80537 commit 6105e7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
- name: Update website repo
run: |
git clone [email protected]:apptainer/apptainer.org.git ~/apptainer.org
rm -rf ~/apptainer.org/static/docs/admin/${GITHUB_REF##*/}
cp -r _build/html ~/apptainer.org/static/docs/admin/${GITHUB_REF##*/}
cd ~/apptainer.org/static/docs/admin/
rm -rf ~/apptainer.org/public/docs/admin/${GITHUB_REF##*/}
cp -r _build/html ~/apptainer.org/public/docs/admin/${GITHUB_REF##*/}
cd ~/apptainer.org/public/docs/admin/
version=`ls -1 | grep -E "^[0-9\.]+$" | sort -V | tail -n 1`
ln -sfn ${version} ~/apptainer.org/static/docs/admin/latest
ln -sfn ${version} ~/apptainer.org/public/docs/admin/latest
cd ~/apptainer.org
git add static/docs/admin/${GITHUB_REF##*/} static/docs/admin/latest
git add public/docs/admin/${GITHUB_REF##*/} public/docs/admin/latest
git commit -m "Update ${GITHUB_REF##*/} admindocs"
git push

0 comments on commit 6105e7b

Please sign in to comment.