chore: migrate to script

This commit is contained in:
Misite Bao 2022-09-21 01:05:34 +08:00
commit 1022d3cd61
4 changed files with 8 additions and 3628 deletions

View file

@ -1,11 +1,11 @@
name: Scheduler
name: Generate Sponsor Image
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
branches: [ test1 ]
branches: [test1]
jobs:
update-sponsors:
@ -18,10 +18,8 @@ jobs:
with:
node-version: 16.x
- run: npx pnpm i
- name: Update sponsors
run: npm run build
run: ./scripts/generate-sponsor-image.sh
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: leaanthony
@ -32,4 +30,4 @@ jobs:
message: "chore: update sponsors.svg"
add: "sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

3606
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,15 +0,0 @@
{
"name": "release",
"version": "1.0.0",
"description": "",
"main": "sponsorkit.config.js",
"scripts": {
"build": "npx sponsorkit -o website/static/img/"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"sponsorkit": "^0.5.2"
}
}

View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
npx sponsorkit -o website/static/img/