Talk Pages Generation #555
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: Talk Pages Generation | |
| on: | |
| schedule: | |
| - cron: "0 */6 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: '.python-version' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run talk-pages task | |
| run: make talk-pages | |
| env: | |
| PRETALX_API_KEY: ${{ secrets.PRETALX_API_KEY }} | |
| PRETALX_EVENT_NAME: ${{ vars.PRETALX_EVENT_NAME }} | |
| - name: Commit and Push Changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: Generates talk pages and social cards | |
| - name: Build static page | |
| run: | | |
| make build | |
| echo "euroscipy.org" > ./tmp/CNAME | |
| - name: Update the main gh-page website | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./tmp | |
| commit_message: "[ci skip] ${{ github.event.head_commit.message }}" |