Publish Docs #4600
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
name: Publish Docs | |
on: | |
workflow_run: | |
workflows: ['ci'] | |
types: | |
- completed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Download artifact | |
uses: dawidd6/action-download-artifact@v6 | |
if: github.event.workflow_run.conclusion == 'success' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
workflow: ci.yml | |
run_id: ${{ github.event.id }} | |
name: docs | |
path: docs | |
- name: Deploy to GitHub Pages | |
if: github.event.workflow_run.conclusion == 'success' | |
uses: crazy-max/ghaction-github-pages@v4.0.0 | |
with: | |
target_branch: gh-pages | |
build_dir: docs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |