mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
chore: migrate to script
This commit is contained in:
parent
2238d6b206
commit
1022d3cd61
4 changed files with 8 additions and 3628 deletions
|
|
@ -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
3606
package-lock.json
generated
File diff suppressed because it is too large
Load diff
15
package.json
15
package.json
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
3
scripts/generate-sponsor-image.sh
Normal file
3
scripts/generate-sponsor-image.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
npx sponsorkit -o website/static/img/
|
||||
Loading…
Add table
Add a link
Reference in a new issue