Skip to content

Commit

Permalink
Add GitHub workflow for updating notkesto-site repo
Browse files Browse the repository at this point in the history
  • Loading branch information
camargomau committed Feb 16, 2024
1 parent 3b04fc4 commit 7cb2140
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/update-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Update site with latest commit

on:
workflow_dispatch: ~
push:
branches:
- main

jobs:
update-site:
runs-on: ubuntu-latest
steps:
- name: Trigger submodule update in site repo
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.SITE_REPO_PAT }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-d '{"event_type": "content-update"}' \
https://api.github.com/repos/camargomau/notkesto-site/dispatches
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*
!.gitignore
!/.github
!/.github/**
!/Assets/
!/Assets/**
!/Jangul/
Expand Down

0 comments on commit 7cb2140

Please sign in to comment.