From fc0866fa55fe38d7827dc421e21569a73a86841b Mon Sep 17 00:00:00 2001 From: Excho <156542197+excho0@users.noreply.github.com> Date: Fri, 2 Oct 2026 12:53:13 +0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..06ef7a6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Generate Contribution Snake + +on: + schedule: + - cron: "0 */6 * * *" + workflow_dispatch: + +permissions: + contents: write + +jobs: + generate: + runs-on: ubuntu-latest + + steps: + - name: Generate snake + uses: Platane/snk@v3.5.0 + with: + github_user_name: excho0 + outputs: | + dist/github-contribution-grid-snake.svg + dist/github-contribution-grid-snake-dark.svg?palette=github-dark + + - name: Push snake to output branch + uses: crazy-max/ghaction-github-pages@v4 + with: + build_dir: dist + branch: output + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}