guide: add latest symlink

This commit is contained in:
David Hewitt 2021-07-20 08:46:40 +01:00
parent f72a9657d3
commit fccea9ff7c
1 changed files with 2 additions and 1 deletions

View File

@ -62,12 +62,13 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
steps:
- name: Create latest tag redirect
- name: Create latest tag redirects
env:
TAG_NAME: ${{ needs.build.outputs.tag_name }}
run: |
mkdir public
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
ln -sfT $TAG_NAME public/latest
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.7.0-8