feat: add workflow to trigger site deployment on content push #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trigger site deploy on content push | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| dispatch: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify website repo | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.WEBSITE_DISPATCH_TOKEN }} # PAT con permesso "repo" sul repo website | |
| repository: stAItuned/website | |
| event-type: content-updated | |
| client-payload: '{"contentSha":"${{ github.sha }}"}' |