Skip to content

Add GitHub Actions to build and publish docs #2

Add GitHub Actions to build and publish docs

Add GitHub Actions to build and publish docs #2

Workflow file for this run

name: Redpoint Games Docs
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Docs
run: |
yarn
yarn build
- name: Upload Built Docs
uses: actions/upload-artifact@v4
with:
name: docs
if-no-files-found: error
path: |
build/
publish:
name: "Publish"
runs-on: ubuntu-latest
needs: ["publish"]

Check failure on line 33 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / Redpoint Games Docs

Invalid workflow file

The workflow is not valid. .github/workflows/docs.yml (Line: 33, Col: 13): Job 'publish' depends on job 'publish' which creates a cycle in the dependency graph.
if: github.ref == 'refs/heads/main' && github.repository == 'RedpointGames/docs'
steps:
- name: Download Built Docs
uses: actions/download-artifact@v4
with:
name: docs
path: build/
merge-multiple: true
- name: Publish Docs
run: |
cp _redirects build/_redirects
yarn
yarn wrangler pages deploy ./build --project-name redpoint-games-docs-next --branch main