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 "hour=$(date +'%H')" >> $GITHUB_OUTPUT
|
||||||
echo "minute=$(date +'%M')" >> $GITHUB_OUTPUT
|
echo "minute=$(date +'%M')" >> $GITHUB_OUTPUT
|
||||||
echo "second=$(date +'%S')" >> $GITHUB_OUTPUT
|
echo "second=$(date +'%S')" >> $GITHUB_OUTPUT
|
||||||
- name: Cache cache.db
|
- name: Restore cache.db
|
||||||
uses: actions/cache@v4
|
uses: actions/cache/restore@v4
|
||||||
|
id: cache-db-restore
|
||||||
with:
|
with:
|
||||||
save-always: true
|
|
||||||
path: |
|
path: |
|
||||||
.cache
|
.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 }}
|
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
|
retention-days: 1
|
||||||
compression-level: 4
|
compression-level: 4
|
||||||
include-hidden-files: false
|
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:
|
deploy_to_cloudflare_pages:
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
|
|||||||
@ -147,7 +147,8 @@ const BILIBILI_INTL: StreamService = {
|
|||||||
'DOMAIN-SUFFIX,biliintl.com',
|
'DOMAIN-SUFFIX,biliintl.com',
|
||||||
'DOMAIN,apm-misaka.biliapi.net',
|
'DOMAIN,apm-misaka.biliapi.net',
|
||||||
'DOMAIN,upos-bstar-mirrorakam.akamaized.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',
|
'DOMAIN-SUFFIX,bilibili.tv',
|
||||||
'PROCESS-NAME,com.bstar.intl'
|
'PROCESS-NAME,com.bstar.intl'
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user