Reorganise GitHub Actions workflows #2
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 | ||
Check failure on line 1 in .github/workflows/publish.yml GitHub Actions / .github/workflows/publish.ymlInvalid workflow file
|
||
on: | ||
workflow_run: | ||
jobs: | ||
publish-githubpages: | ||
name: Publish docs to GitHub Pages | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Download Buildarr Docs from build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: buildarr-docs | ||
path: site | ||
- name: Publish docs to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
personal_token: ${{ secrets.PERSONAL_TOKEN }} | ||
publish_dir: ./site | ||
external_repository: buildarr/buildarr.github.io | ||
publish_branch: main |