From cb98dce0b7565735e96f18ee55d7984e4d99bfae Mon Sep 17 00:00:00 2001 From: PiQuark6046 Date: Tue, 12 Dec 2023 14:39:59 +0000 Subject: [PATCH 1/3] add purgecache.yml --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20b5940a91..9e754bf24d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,3 +74,16 @@ jobs: git push origin main git tag ${{ env.TAGNAME }} git push origin ${{ env.TAGNAME }} + jsdelivrpurge: + name: Purge jsDelivr cache + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + steps: + - name: Set up NodeJS LTS + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - name: Run jsDelivr-Purge + uses: List-KR/jsdelivr-purge@5.1.0 From b236b861d259692ecb2ae43437cd078d8b16bf5a Mon Sep 17 00:00:00 2001 From: PiQuark6046 Date: Tue, 12 Dec 2023 14:47:29 +0000 Subject: [PATCH 2/3] separate purging cache --- .github/workflows/main.yml | 13 ------------- .github/workflows/purgecache.yml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/purgecache.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e754bf24d..20b5940a91 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,16 +74,3 @@ jobs: git push origin main git tag ${{ env.TAGNAME }} git push origin ${{ env.TAGNAME }} - jsdelivrpurge: - name: Purge jsDelivr cache - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - steps: - - name: Set up NodeJS LTS - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - name: Run jsDelivr-Purge - uses: List-KR/jsdelivr-purge@5.1.0 diff --git a/.github/workflows/purgecache.yml b/.github/workflows/purgecache.yml new file mode 100644 index 0000000000..41a745f23f --- /dev/null +++ b/.github/workflows/purgecache.yml @@ -0,0 +1,21 @@ +name: Purge jsDelivr cache + +on: + push: + branches: + - "main" + +jobs: + jsdelivrpurge: + name: Purge jsDelivr cache + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + steps: + - name: Set up NodeJS LTS + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - name: Run jsDelivr-Purge + uses: List-KR/jsdelivr-purge@5.1.0 \ No newline at end of file From a2f69bdb750dbd361fb78604b2ced69fabec2057 Mon Sep 17 00:00:00 2001 From: PiQuark6046 Date: Sat, 17 Feb 2024 11:00:44 +0000 Subject: [PATCH 3/3] update version --- .github/workflows/purgecache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/purgecache.yml b/.github/workflows/purgecache.yml index 41a745f23f..d567b03ae6 100644 --- a/.github/workflows/purgecache.yml +++ b/.github/workflows/purgecache.yml @@ -18,4 +18,4 @@ jobs: with: node-version: 'lts/*' - name: Run jsDelivr-Purge - uses: List-KR/jsdelivr-purge@5.1.0 \ No newline at end of file + uses: List-KR/jsdelivr-purge@5.5.0 \ No newline at end of file