Skip to content

Commit

Permalink
Draft to start pushing tags to permanently-kept documentation pages
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jul 23, 2024
1 parent 3d9f7e2 commit d8d7050
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,23 @@ jobs:
BRANCH: gh-pages
FOLDER: _gh-pages
SINGLE_COMMIT: true
deploy_documentation_release:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/head/master' && github.event_name == 'release'
steps:
- name: retrieve built documentation
uses: actions/download-artifact@v2
with:
name: documentation-page
- name: debug
run: |
mkdir _gh-pages
mv latest _gh-pages/${GITHUB_REF#refs/tags/}
- name: deploying tag ${GITHUB_REF#refs/tags/} to gh-pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _gh-pages
SINGLE_COMMIT: true

0 comments on commit d8d7050

Please sign in to comment.