From af1f701e93b19469711dc0c2c911636faf017a90 Mon Sep 17 00:00:00 2001 From: xkrfer Date: Mon, 2 May 2022 19:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20=E4=BD=BF=E7=94=A8GitHub=20Actio?= =?UTF-8?q?ns=20=E6=9E=84=E5=BB=BA=E5=8F=91=E5=B8=83=E5=88=B0Release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ vite.config.ts | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ce1e6dc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +# docker-image.yml +name: release extension +on: + push: + branches: + - main + tags: + - v* + +jobs: + push_replease: + name: Push release + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Install and Build + run: | + npm install + npm run build + rm -rf pushdeer-crx + mv dist pushdeer-crx + + - name: Release + uses: fnkr/github-action-ghr@v1 + env: + GHR_COMPRESS: zip + GHR_PATH: pushdeer-crx/ + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/vite.config.ts b/vite.config.ts index 327514d..fb09e97 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -41,7 +41,7 @@ export default defineConfig({ root: root("/edge"), build: { emptyOutDir: true, - minify: false, + minify: true, rollupOptions: { input: { popup: root("/edge/popup/popup.html"),