Skip to content

.github/workflows/jekyll-docker.yml #292

.github/workflows/jekyll-docker.yml

.github/workflows/jekyll-docker.yml #292

Workflow file for this run

# Nome da Actions:
name: Snake Game
# Controlador do tempo que sera feito a atualização dos arquivos.
on:
schedule:
# Será atualizado a cada 5 horas.
- cron: "0 */5 * * *"
# Permite executar na na lista de Actions (utilizado para testes de build).
workflow_dispatch:
# Regras
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks repo under $GITHUB_WORKSHOP, so your job can access it
- uses: actions/checkout@v2
# Repositorio que será utilizado para gerar os arquivos.
- uses: Platane/snk@master
id: snake-gif
with:
github_user_name: GuilhermeAlvesTeixeira
gif_out_path: dist/github-contribution-grid-snake.gif
svg_out_path: dist/github-contribution-grid-snake.svg
- run: git status
# Para as atualizações.
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
force: true
- uses: crazy-max/ghaction-github-pages@v2.1.3
with:
# the output branch we mentioned above
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}