Skip to content

Commit

Permalink
Merge pull request #127 from ecmwf-ifs/nabr-fix-documentation-ci
Browse files Browse the repository at this point in the history
Hotfix: Upload documentation to Sites for main branch
  • Loading branch information
reuterbal authored Aug 15, 2023
2 parents 7507b06 + 74532ff commit 0db337c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,22 @@ jobs:
run: |
make html
- name: Upload documentation to sites
- name: Upload pull request documentation to sites
if: github.event.pull_request.head.repo.full_name == 'ecmwf-ifs/loki'
env:
SITES_TOKEN: ${{ secrets.SITES_TOKEN }}
working-directory: ./docs
run: |
./sites-manager.py --space=docs --name=loki --token "$SITES_TOKEN" upload build/html ${{ github.event.pull_request.number }} || true
- name: Update documentation on sites
if: github.event_name != 'pull_request'
env:
SITES_TOKEN: ${{ secrets.SITES_TOKEN }}
working-directory: ./docs
run: |
./sites-manager.py --space=docs --name=loki --token "$SITES_TOKEN" upload --clean build/html ${{ github.ref_name }} || true
- name: Find Comment
if: github.ref_name != 'main'
uses: peter-evans/find-comment@v2
Expand Down

0 comments on commit 0db337c

Please sign in to comment.