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"),