-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
21 changed files
with
748 additions
and
646 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 |
---|---|---|
@@ -1,54 +1,43 @@ | ||
name: Deploy | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "**.js" | ||
- "**.ts" | ||
- "**.tsx" | ||
- "**.less" | ||
- ".github/workflows/**" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "**.js" | ||
- "**.ts" | ||
- "**.tsx" | ||
- "**.less" | ||
- ".github/workflows/**" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to release' | ||
required: true | ||
jobs: | ||
submit: | ||
name: Release && Submit | ||
CI: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: "latest" | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: git config | ||
run: | | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: release | ||
run: pnpm release -i=${{ github.event.inputs.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Zip extensions | ||
run: pnpm zip | ||
|
||
- name: Submit to stores | ||
run: | | ||
pnpm wxt submit \ | ||
--chrome-zip .output/*-chrome.zip | ||
env: | ||
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | ||
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: latest | ||
run_install: true | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Lint | ||
run: pnpm lint |
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,54 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to release | ||
required: true | ||
jobs: | ||
submit: | ||
name: Release && Submit | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: latest | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: git config | ||
run: | | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: release | ||
run: pnpm release -i=${{ github.event.inputs.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Zip extensions | ||
run: pnpm zip | ||
|
||
- name: Submit to stores | ||
run: | | ||
pnpm wxt submit \ | ||
--chrome-zip .output/*-chrome.zip | ||
env: | ||
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | ||
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} |
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 |
---|---|---|
|
@@ -59,7 +59,7 @@ | |
{ | ||
"type": "chore", | ||
"section": "🎫 Chores | 其他更新" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
|
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
Oops, something went wrong.