Skip to content

Commit

Permalink
feat(ci): init
Browse files Browse the repository at this point in the history
  • Loading branch information
Candinya committed May 28, 2024
1 parent 6da7e6b commit 2ed89cc
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-contributors-graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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"

0 comments on commit 2ed89cc

Please sign in to comment.