From 7cb21403f0a3451eb04076c08720be7a7e5599ac Mon Sep 17 00:00:00 2001 From: Mau Camargo <52770775+camargomau@users.noreply.github.com> Date: Thu, 15 Feb 2024 22:45:39 -0600 Subject: [PATCH] Add GitHub workflow for updating notkesto-site repo --- .github/workflows/update-site.yml | 19 +++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/update-site.yml diff --git a/.github/workflows/update-site.yml b/.github/workflows/update-site.yml new file mode 100644 index 0000000..9bfd4fb --- /dev/null +++ b/.github/workflows/update-site.yml @@ -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 diff --git a/.gitignore b/.gitignore index 42c037b..6e50281 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ * !.gitignore +!/.github +!/.github/** !/Assets/ !/Assets/** !/Jangul/