Skip to content

Commit

Permalink
Update: Release firefox and chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Nov 10, 2023
1 parent 0ce91c4 commit c7f028b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,27 @@ jobs:
run: ./devtools.sh init

- name: Build
run: pnpm run build-chrome
run: |
pnpm run build-chrome
pnpm run build-firefox
- name: Compress files
uses: vimtor/[email protected]
with:
files: dist/
dest: gaming-gundai.zip
files: dist/chrome
dest: gaming-gundai-chrome.zip

- name: Compress files
uses: vimtor/[email protected]
with:
files: dist/firefox
dest: gaming-gundai-firefox.zip

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: gaming-gundai.zip
files: |
gaming-gundai-chrome.zip
gaming-gundai-firefox.zip
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = (env: Env, argv: Argv): Configuration => {
},

output: {
path: path.join(__dirname, "dist"),
path: path.join(__dirname, "dist", env.browser),
clean: true,
filename: "[name].js",
chunkFilename: "[name].chunk.js",
Expand Down

0 comments on commit c7f028b

Please sign in to comment.