Skip to content

Commit

Permalink
ci: autorebuild documentation on release or push to dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MrIndeciso committed Jul 13, 2024
1 parent c0fe921 commit a6b868b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/refresh_dev_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Refresh Dev Documentation

on:
push:
branches: ["dev"]

jobs:
notify:
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Trigger Workflow in Docs Repository
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
https://api.github.com/repos/libdebug/docs.libdebug.github.io/dispatches \
-d "{\"event_type\": \"refresh_dev\"}"
23 changes: 23 additions & 0 deletions .github/workflows/refresh_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Refresh Documentation

on:
release:
types: [published]

permissions:
contents: read

jobs:
notify:
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Trigger Workflow in Docs Repository
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
https://api.github.com/repos/libdebug/docs.libdebug.github.io/dispatches \
-d "{\"event_type\": \"update_docs\", \"client_payload\": {\"sha\": \"$GITHUB_SHA\"}}"

0 comments on commit a6b868b

Please sign in to comment.