Skip to content

feat(ci): init

feat(ci): init #1

name: Build contributors graph
on:
schedule:
- "0 0 * * 0"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Generate Contributors Graph
run: go run .
env:
TOKEN: ${{ github.token }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "contributors-graph"
path: contributors.svg
deploy:
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
artifact_name: "contributors-graph"