Merge pull request #1734 from davidhewitt/latest-tag
guide: add latest symlink
This commit is contained in:
commit
243e5eea13
|
@ -62,12 +62,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Create latest tag redirect
|
- name: Create latest tag redirects
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ needs.build.outputs.tag_name }}
|
TAG_NAME: ${{ needs.build.outputs.tag_name }}
|
||||||
run: |
|
run: |
|
||||||
mkdir public
|
mkdir public
|
||||||
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
|
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
|
||||||
|
ln -sfT $TAG_NAME public/latest
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3.7.0-8
|
uses: peaceiris/actions-gh-pages@v3.7.0-8
|
||||||
|
|
Loading…
Reference in New Issue