Remove jsDelivr workflow

This commit is contained in:
the1812 2022-06-25 19:56:39 +08:00
parent cbf031e7e7
commit 6736a9b3af
4 changed files with 0 additions and 83 deletions

View File

@ -1,12 +0,0 @@
{
"name": "@bevo/build-scripts",
"version": "1.0.0",
"main": "purge-cache.js",
"type": "module",
"author": "Grant Howard",
"license": "MIT",
"private": true,
"dependencies": {
"node-fetch": "^3.1.0"
}
}

View File

@ -1,16 +0,0 @@
import fetch from 'node-fetch'
import { compilationInfo } from '../../webpack/compilation-info.js'
const files = [
'dist/bilibili-evolved.preview.user.js',
'dist/bilibili-evolved.user.js',
]
files.forEach(file => {
const url = `https://purge.jsdelivr.net/gh/the1812/Bilibili-Evolved@${compilationInfo.branch}/${file}`
console.log('url:', url)
fetch(url)
.then(response => response.json()).then(json => console.log(json))
.catch(error => console.error(error))
})

View File

@ -1,36 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
data-uri-to-buffer@^4.0.0:
version "4.0.0"
resolved "https://registry.npmmirror.com/data-uri-to-buffer/download/data-uri-to-buffer-4.0.0.tgz?cache=0&sync_timestamp=1632737590653&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fdata-uri-to-buffer%2Fdownload%2Fdata-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b"
integrity sha1-tdtGrqUPYXZCisBbc745pXcBpks=
fetch-blob@^3.1.2:
version "3.1.3"
resolved "https://registry.npmmirror.com/fetch-blob/download/fetch-blob-3.1.3.tgz#a7dca4855e39d3e3c5a1da62d4ee335c37d26012"
integrity sha512-ax1Y5I9w+9+JiM+wdHkhBoxew+zG4AJ2SvAD1v1szpddUIiPERVGBxrMcB2ZqW0Y3PP8bOWYv2zqQq1Jp2kqUQ==
dependencies:
web-streams-polyfill "^3.0.3"
formdata-polyfill@^4.0.10:
version "4.0.10"
resolved "https://registry.npmmirror.com/formdata-polyfill/download/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423"
integrity sha1-JIB8McnUAuACqz2McgFEzriEhCM=
dependencies:
fetch-blob "^3.1.2"
node-fetch@^3.1.0:
version "3.1.0"
resolved "https://registry.npmmirror.com/node-fetch/download/node-fetch-3.1.0.tgz?cache=0&sync_timestamp=1636395522428&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-3.1.0.tgz#714f4922dc270239487654eaeeab86b8206cb52e"
integrity sha512-QU0WbIfMUjd5+MUzQOYhenAazakV7Irh1SGkWCsRzBwvm4fAhzEUaHMJ6QLP7gWT6WO9/oH2zhKMMGMuIrDyKw==
dependencies:
data-uri-to-buffer "^4.0.0"
fetch-blob "^3.1.2"
formdata-polyfill "^4.0.10"
web-streams-polyfill@^3.0.3:
version "3.2.0"
resolved "https://registry.npmmirror.com/web-streams-polyfill/download/web-streams-polyfill-3.2.0.tgz?cache=0&sync_timestamp=1636211222274&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fweb-streams-polyfill%2Fdownload%2Fweb-streams-polyfill-3.2.0.tgz#a6b74026b38e4885869fb5c589e90b95ccfc7965"
integrity sha1-prdAJrOOSIWGn7XFiekLlcz8eWU=

View File

@ -1,19 +0,0 @@
name: Purge Cache
on:
workflow_dispatch:
jobs:
purge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Send Purge Request
run: cd .github/scripts/ && yarn && node purge-cache.js