contrib snek #1503
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: contrib snek | |
on: | |
schedule: | |
- cron: "0 */8 * * *" | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: generate darkmaster-snake.svg | |
uses: Platane/snk/svg-only@v2 | |
with: | |
github_user_name: ${{ github.repository_owner }} | |
outputs: | | |
dist/snek.svg?palette=github-light | |
dist/snek.svg?palette=github-dark | |
- name: push snek.svg to the snake branch | |
uses: crazy-max/ghaction-github-pages@v2.6.0 | |
with: | |
target_branch: snake | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |