Update gh-pages branch on alire.ada.dev #1912
This file contains 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: Update gh-pages branch on alire.ada.dev | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: alire-project/setup-alire@v4 | |
- run: bash -v update-gh-pages.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAGES_UPDATE }} | |
- name: Request Github Pages build job | |
run: >- | |
curl -L -X POST | |
-H "Content-Type: application/json" | |
-H "Authorization: token ${{ secrets.GH_PAGES_UPDATE }}" | |
"https://api.github.com/repos/${{ github.repository }}/pages/builds" |