Skip to content

Commit

Permalink
Fix workflow for new site
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kinder <me@mwk.email>
  • Loading branch information
FoggyMtnDrifter committed Nov 12, 2023
1 parent 9a0a0b8 commit bc3725c
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 git@github.com: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 bc3725c

Please sign in to comment.