forked from gwastro/pycbc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from GarethCabournDavies/docs_releases
TEST: docs releases
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|