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/