Snake Game #110
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
# 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: Fioshi #Seu usuario | |
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 }} |