mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
CI: migrate cache save always
https://github.com/actions/cache/issues/1315
This commit is contained in:
parent
74c8cfdeb1
commit
373b12f4e1
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -39,10 +39,10 @@ jobs:
|
||||
echo "hour=$(date +'%H')" >> $GITHUB_OUTPUT
|
||||
echo "minute=$(date +'%M')" >> $GITHUB_OUTPUT
|
||||
echo "second=$(date +'%S')" >> $GITHUB_OUTPUT
|
||||
- name: Cache cache.db
|
||||
uses: actions/cache@v4
|
||||
- name: Restore cache.db
|
||||
uses: actions/cache/restore@v4
|
||||
id: cache-db-restore
|
||||
with:
|
||||
save-always: true
|
||||
path: |
|
||||
.cache
|
||||
key: ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-${{ steps.date.outputs.day }} ${{ steps.date.outputs.hour }}:${{ steps.date.outputs.minute }}:${{ steps.date.outputs.second }}
|
||||
@ -77,6 +77,13 @@ jobs:
|
||||
retention-days: 1
|
||||
compression-level: 4
|
||||
include-hidden-files: false
|
||||
- name: Cache cache.db
|
||||
if: always()
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
.cache
|
||||
key: ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-${{ steps.date.outputs.day }} ${{ steps.date.outputs.hour }}:${{ steps.date.outputs.minute }}:${{ steps.date.outputs.second }}
|
||||
deploy_to_cloudflare_pages:
|
||||
needs:
|
||||
- build
|
||||
|
||||
@ -147,7 +147,8 @@ const BILIBILI_INTL: StreamService = {
|
||||
'DOMAIN-SUFFIX,biliintl.com',
|
||||
'DOMAIN,apm-misaka.biliapi.net',
|
||||
'DOMAIN,upos-bstar-mirrorakam.akamaized.net',
|
||||
'DOMAIN,upos-bstar1-mirrorakam.akamaized.net',
|
||||
'DOMAIN,upos-bstar1-mirrorakam.akamaized.net', // geoblocking
|
||||
// upos-sz-mirroralibstar1.bilivideo.com, from domain bilivideo.com and without geoblocking
|
||||
'DOMAIN-SUFFIX,bilibili.tv',
|
||||
'PROCESS-NAME,com.bstar.intl'
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user