mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
⚙️ Update deploy-api workflow
This commit is contained in:
parent
1f57b82692
commit
ba79831e20
29
.github/workflows/check-links.yml
vendored
29
.github/workflows/check-links.yml
vendored
@ -1,29 +0,0 @@
|
|||||||
name: 🔎 Check links
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
linkChecker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Restore lychee cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: .lycheecache
|
|
||||||
key: cache-lychee-${{ github.sha }}
|
|
||||||
restore-keys: cache-lychee-
|
|
||||||
|
|
||||||
- name: CDN
|
|
||||||
id: lychee
|
|
||||||
uses: lycheeverse/lychee-action@v1.9.3
|
|
||||||
with:
|
|
||||||
fail: true
|
|
||||||
args: '--base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include "https://svgl.app"'
|
|
6
.github/workflows/deploy-api.yml
vendored
6
.github/workflows/deploy-api.yml
vendored
@ -26,9 +26,3 @@ jobs:
|
|||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
packageManager: pnpm
|
packageManager: pnpm
|
||||||
workingDirectory: 'api-routes'
|
workingDirectory: 'api-routes'
|
||||||
secrets: |
|
|
||||||
UPSTASH_REDIS_URL
|
|
||||||
UPSTASH_REDIS_TOKEN
|
|
||||||
env:
|
|
||||||
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
|
|
||||||
UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user