-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
42 lines (36 loc) · 912 Bytes
/
generate-trophy.yml
File metadata and controls
42 lines (36 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Generate Trophy
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
- name: Make dist folder
run: mkdir -p dist
- name: Generate Trophy SVG
run: |
deno run \
--allow-net \
--allow-env \
--allow-read \
--allow-write \
./render_svg.ts \
Sathya-Ganesh007 \
./dist \
onedark
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: trophy-output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}