Skip to content

Commit

Permalink
Merge pull request #6 from GarethCabournDavies/docs_releases
Browse files Browse the repository at this point in the history
TEST: docs releases
  • Loading branch information
GarethCabournDavies authored Jul 23, 2024
2 parents 3d9f7e2 + 57ee394 commit 5d3bf5f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@ jobs:
deploy_documentation:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || 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
- name: deploying to gh-pages
if [ github.event_name == 'release']; then ENV_PAGE=${GITHUB_REF#refs/tags/}; else ENV_PAGE=current; fi
mkdir _gh-pages/$ENV_PAGE
mv latest _gh-pages/$ENV_PAGE
- name: deploying $page to gh-pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 5d3bf5f

Please sign in to comment.