-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42da933
commit 58010c1
Showing
52 changed files
with
7,028 additions
and
4,904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### 🆕 New Features | ||
* none | ||
|
||
### 🛠️ Bug Fixes | ||
* none | ||
|
||
### 🔣 Dependencies | ||
* none | ||
|
||
### ‼️ Breaking Changes | ||
* none | ||
|
||
### 🔄 Other Changes | ||
* none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build | ||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.SUBMODULE_TOKEN }} | ||
- name: Set up Node.js | ||
uses: actions/setup-node@main | ||
with: | ||
node-version: 'latest' | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Update local package.json version from release tag | ||
if: github.ref_type == 'tag' | ||
uses: BellCubeDev/update-package-version-by-release-tag@v2 | ||
with: | ||
version: ${{ github.ref_name }} | ||
keep-v: "false" # If set to "true", will not remove any 'v' prefix from the version number. | ||
ignore-semver-check: "false" # If set to "true", will not check if the version number is a valid semver version. | ||
- name: Build scripts | ||
run: npm run build | ||
- name: Generate modules | ||
run: npm run build:args | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: artifact | ||
path: | | ||
CHANGELOG.md | ||
rulesets | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/heads | ||
branches: | ||
- dev | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
|
||
jobs: | ||
debug: | ||
uses: ./.github/workflows/dev.yml | ||
secrets: inherit | ||
deploy: | ||
needs: debug | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: artifact | ||
- name: Deploy Request | ||
uses: exuanbo/actions-deploy-gist@main | ||
with: | ||
token: ${{ secrets.GIST_TOKEN }} | ||
gist_id: e9cf9f1b7044c93f94c926de94bb5a7b | ||
gist_description: "🍿️ DualSubs: 🇳 Netflix β" | ||
file_path: dist/request.bundle.js | ||
- name: Deploy Reponse | ||
uses: exuanbo/actions-deploy-gist@main | ||
with: | ||
token: ${{ secrets.GIST_TOKEN }} | ||
gist_id: e9cf9f1b7044c93f94c926de94bb5a7b | ||
gist_description: "🍿️ DualSubs: 🇳 Netflix β" | ||
file_path: dist/response.bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Dev | ||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.SUBMODULE_TOKEN }} | ||
ref: dev | ||
- name: Set up Node.js | ||
uses: actions/setup-node@main | ||
with: | ||
node-version: 'latest' | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build:dev | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: artifact | ||
path: | | ||
CHANGELOG.md | ||
rulesets | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Draft | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/heads | ||
branches: | ||
- main | ||
|
||
permissions: | ||
actions: read | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
draft: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: artifact | ||
- name: Publish Draft | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
body_path: CHANGELOG.md | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
rulesets/* | ||
dist/* | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Pre-Release | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+ | ||
- v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+ | ||
|
||
permissions: | ||
actions: read | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
pre-release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: artifact | ||
- name: Publish Pre-Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
body_path: CHANGELOG.md | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
rulesets/* | ||
dist/* | ||
prerelease: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
permissions: | ||
actions: read | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: artifact | ||
- name: Publish Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
body_path: CHANGELOG.md | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
rulesets/* | ||
dist/* | ||
make_latest: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[submodule "BoxJs"] | ||
path = BoxJs | ||
url = https://github.com/DualSubs/BoxJs.git | ||
[submodule "src/ENV"] | ||
path = src/ENV | ||
url = https://github.com/NanoCat-Me/ENV.git | ||
[submodule "src/URI"] | ||
path = src/URI | ||
url = https://github.com/NanoCat-Me/URI.git | ||
[submodule "src/utils"] | ||
path = src/utils | ||
url = https://github.com/NanoCat-Me/utils.git |
Submodule BoxJs
deleted from
586564
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
### 🔄 Other Changes | ||
* 打包器由 `rollup` 更改为 `rspack` |
Oops, something went wrong.