mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-26 21:21:53 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62cb22d2ab | ||
|
|
2c88e8764a | ||
|
|
70c33af717 | ||
|
|
74c5d4ae2b | ||
|
|
462648a71f | ||
|
|
6b45661fe3 | ||
|
|
fd275d5e7d | ||
|
|
b08a806ce7 | ||
|
|
5104c5b620 | ||
|
|
f3d41a3c6c | ||
|
|
598314a111 | ||
|
|
bb822b2d5b | ||
|
|
3e99ba57ac | ||
|
|
8e2af7a869 | ||
|
|
47ccb37a26 | ||
|
|
5cb1d1fa22 | ||
|
|
391f7292e7 | ||
|
|
5dc3c4c248 | ||
|
|
19c5b6e2ba |
@@ -3,8 +3,9 @@ name: Build and Release
|
|||||||
on: workflow_dispatch
|
on: workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish:
|
build-and-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -21,18 +22,17 @@ jobs:
|
|||||||
- name: Build project
|
- name: Build project
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Get version
|
|
||||||
id: version
|
|
||||||
run: |
|
|
||||||
VERSION=$(jq -r '.version' build/manifest.json)
|
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
||||||
echo "build_time=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Zip build artifacts
|
- name: Zip build artifacts
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
zip -r ../extension.zip .
|
zip -r ../extension.zip .
|
||||||
|
|
||||||
|
- name: Generate version number
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
echo "version=1.0.${{ github.run_number }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "build_time=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@@ -57,27 +57,3 @@ jobs:
|
|||||||
asset_path: ./extension.zip
|
asset_path: ./extension.zip
|
||||||
asset_name: yakit-chrome-extension-v${{ steps.version.outputs.version }}.zip
|
asset_name: yakit-chrome-extension-v${{ steps.version.outputs.version }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Upload Extension To OSS
|
|
||||||
uses: tvrcgo/upload-to-oss@master
|
|
||||||
with:
|
|
||||||
key-id: ${{ secrets.OSS_KEY_ID }}
|
|
||||||
key-secret: ${{ secrets.OSS_KEY_SECRET }}
|
|
||||||
region: oss-accelerate
|
|
||||||
bucket: yaklang
|
|
||||||
assets: |
|
|
||||||
extension.zip:/chrome-extension/yakit-chrome-extension-v${{ steps.version.outputs.version }}.zip
|
|
||||||
|
|
||||||
- name: Update OSS latest version file
|
|
||||||
run: echo ${{ steps.version.outputs.version }} > ./extension-version.txt
|
|
||||||
|
|
||||||
- name: Upload Version File to OSS
|
|
||||||
uses: tvrcgo/upload-to-oss@master
|
|
||||||
with:
|
|
||||||
key-id: ${{ secrets.OSS_KEY_ID }}
|
|
||||||
key-secret: ${{ secrets.OSS_KEY_SECRET }}
|
|
||||||
region: oss-accelerate
|
|
||||||
bucket: yaklang
|
|
||||||
assets: |
|
|
||||||
./extension-version.txt:/chrome-extension/latest-version.txt
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Yakit Chrome Endpoint",
|
"name": "Yakit Chrome Endpoint",
|
||||||
"version": "0.0.1",
|
"version": "1.0",
|
||||||
"description": "A Endpoint for Yakit MITM or more",
|
"description": "A Endpoint for Yakit MITM or more",
|
||||||
"options_ui": {
|
"options_ui": {
|
||||||
"page": "proxy/options.html",
|
"page": "proxy/options.html",
|
||||||
|
|||||||
Reference in New Issue
Block a user