diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6b94958 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: Dispatch to repo +on: + push: + branches: main + workflow_dispatch: +jobs: + dispatch: + runs-on: ubuntu-latest + strategy: + matrix: + repo: ["dicelette/dicelette.github.io"] + steps: + - name: Push to repo + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.GH_PAT }} + repository: ${{ matrix.repo }} + event-type: build + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "module": "content", "branch": "main"}'