-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from csfloat/add-version-release-zip
Add Versioning to Zip-Files in Release
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,18 @@ jobs: | |
|
||
- name: Build and compress | ||
run: | | ||
TAG=${{ github.ref_name }} | ||
npm install | ||
npm run build | ||
(cd dist && zip -r ../extension-chrome.zip .) | ||
(cd dist && zip -r ../extension-${TAG}-chrome.zip .) | ||
rm -rf dist | ||
npm run build_ff | ||
(cd dist && zip -r ../extension-firefox.zip .) | ||
(cd dist && zip -r ../extension-${TAG}-firefox.zip .) | ||
- uses: "marvinpinto/[email protected]" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
extension-chrome.zip | ||
extension-firefox.zip | ||
extension-*-chrome.zip | ||
extension-*-firefox.zip |