Skip to content

Commit

Permalink
CI: automated docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Sep 3, 2024
1 parent 853cad4 commit 4c4ca4f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Automated builds

on:
push:
pull_request: # They will only build the containers, not push them
paths:
- "images/**"
pull_request: # They will only build the containers, not push them to our registry
paths:
- "images/**"
types:
- opened
- reopened
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build docs
on:
push:
paths:
- "docs/**"
pull_request:
paths:
- "docs/**"

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Fire event
# see docs here: https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event
run: |
curl -L \
--fail-with-body \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GHCR_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/games-on-whales/games-on-whales.github.io/dispatches \
-d '{"event_type":"trigger-publish"}'

0 comments on commit 4c4ca4f

Please sign in to comment.