Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/generate-trophy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}