Skip to content

Reorganise GitHub Actions workflows #2

Reorganise GitHub Actions workflows

Reorganise GitHub Actions workflows #2

Workflow file for this run

name: Publish Docs

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
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