File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,17 +36,26 @@ jobs:
3636 make clean html linkcheck
3737 popd
3838
39- - name : GitHub Pages action
39+ - name : Publish to Github Pages on main
40+ if : ${{ github.ref == 'refs/heads/main' }}
41+ uses : peaceiris/actions-gh-pages@v3
42+ with :
43+ github_token : ${{ secrets.GITHUB_TOKEN }}
44+ publish_dir : docs/_build/html/
45+ destination_dir : latest
46+ keep_files : false
47+
48+ - name : Publish to Github Pages on release
4049 if : ${{ github.event_name == 'release' }}
4150 uses : peaceiris/actions-gh-pages@v3
4251 with :
4352 github_token : ${{ secrets.GITHUB_TOKEN }}
4453 publish_dir : docs/_build/html/
4554
46- - name : Publish to Github Pages on main
55+ - name : Publish to Github Pages on release to version folder
56+ if : ${{ github.event_name == 'release' }}
4757 uses : peaceiris/actions-gh-pages@v3
4858 with :
4959 github_token : ${{ secrets.GITHUB_TOKEN }}
5060 publish_dir : docs/_build/html/
51- destination_dir : dev
52- keep_files : false
61+ destination_dir : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments