Releases: Sutil/snk
v01.00.02
First release for Github marketplace!
In this release, you can generate an svn snake game from your contributions!
v01.00.00
snk
English
This project is an version of Platane/snk!
What it does?
You can generate a SVG or GIF file that is a snake eating your Github contributions and you can put it on your profile!
What is different from the original project?
- The background of the generated image is semitransparent.
- You can choose the snake color!
How can I use it?
-
Put the URL of the generated image in your github profile.
![snake animation](https://github.com/<seu user name>/<seu user name>/blob/output/github-contribution-grid-snake2.svg)
b) Create an github action inside inside your repo.
For that create the file.github/workflows/snake.yml
.
Put the content below inside the file.
If you want, Change thesnake_color
.
name: Generate snake game
on:
schedule: # execute every 12 hours
- cron: "* */12 * * *"
workflow_dispatch:
jobs:
build:
name: Jobs to update datas
runs-on: ubuntu-latest
steps:
# Snake Animation
- uses: Sutil/snk@master
id: snake-gif
with:
github_user_name: ${{ github.repository_owner }}
svg_out_path: dist/github-contribution-grid-snake2.svg
snake_color: 'blue'
- uses: crazy-max/ghaction-github-pages@v2.1.3
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Every 12 hours your profile will be updated.
Português
Este projeto é uma versão do projeto Platane/snk!
O que esse projeto faz?
Você pode gerar um svg ou gif que é uma cobrinha comendo suas contribuições no Github e colocar no seu perfil!
O que tem de diferente do projeto original?
- O README está escrito em português! o/
- O background da imagem gerada é semi-transparente.
- Você pode escolher a cor da cobrinha!
Como eu posso usar?
-
Crie um repositório com o mesmo nome do seu perfil no github.
No meu caso, eu criei um repo com o nome Sutil (https://github.com/Sutil).
Neste exemplo o repo ficará com o endereço https://github.com/Sutil/Sutil. -
Dentro deste projeto crie um arquivo README.md
O Conteúdo deste arquivo será mostrado no seu Perfil do github.
Veja o exemplo do meu perfil. -
Coloque a cobrinha neste arquivo de README.
a) Para fazer isso, coloque a url da imagem que será gerada.
![snake animation](https://github.com/<seu user name>/<seu user name>/blob/output/github-contribution-grid-snake2.svg)
b) crie um github actions dentro do seu repo.
Para isso crie um arquivo.github/workflows/snake.yml
.coloque o conteúdo abaixo dentro do arquivo.
Se desejar, troque a corsnake_color
.
name: Generate snake game
on:
schedule: # execute every 12 hours
- cron: "* */12 * * *"
workflow_dispatch:
jobs:
build:
name: Jobs to update datas
runs-on: ubuntu-latest
steps:
# Snake Animation
- uses: Sutil/snk@master
id: snake-gif
with:
github_user_name: ${{ github.repository_owner }}
svg_out_path: dist/github-contribution-grid-snake2.svg
snake_color: 'blue'
- uses: crazy-max/ghaction-github-pages@v2.1.3
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
A cada 12 horas seu perfil será atualizado!