Skip to content

Commit

Permalink
👷 使用GitHub Actions 构建发布到Release
Browse files Browse the repository at this point in the history
  • Loading branch information
xkrfer committed May 2, 2022
1 parent b9ec0ab commit af1f701
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit af1f701

Please sign in to comment.