Skip to content

Commit

Permalink
Also publish documentation to /latest on push to main as well as vers…
Browse files Browse the repository at this point in the history
…ion number

Co-authored-by: Jon McLean <[email protected]>
  • Loading branch information
jonmclean and Jon McLean authored Nov 4, 2021
1 parent 81f848d commit ad6a8a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: ${{ env.GRASPOLOGIC_VERSION }}
- name: Publish latest reference docs (main branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: latest
- name: Create tag and GitHub release
uses: ncipollo/release-action@v1
if: github.ref=='refs/heads/main'
Expand Down

0 comments on commit ad6a8a6

Please sign in to comment.