Skip to content

Commit

Permalink
docs: zipped files includes temp folders (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani authored Oct 13, 2023
1 parent 7dd24a3 commit 109d00a
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,16 @@ jobs:
- name: Archive Extension Files
if: steps.semver.outputs.version != ''
run: |
# Chrome Zip
cp -r src chrome_temp
rm chrome_temp/manifest.firefox.json
mv chrome_temp/manifest.chrome.json chrome_temp/manifest.json
zip -r chorus-chrome.zip chrome_temp/
rm -rf chrome_temp/
# Firefox Zip
cp -r src firefox_temp
rm firefox_temp/manifest.chrome.json
mv firefox_temp/manifest.firefox.json firefox_temp/manifest.json
zip -r chorus-firefox.zip firefox_temp/
rm -rf firefox_temp/
function create_zip {
# $1: source dir, $2: temp dir, $3: output zip name, $4: manifest name
cp -r "$1" "$2"
mv "$2/manifest.$4.json" "$2/manifest.json"
cd "$2" && zip -r "../$3" . && cd ..
rm -rf "$2"
}
create_zip src chrome_temp chorus-chrome.zip chrome
create_zip src firefox_temp chorus-firefox.zip firefox
- name: Create Release Archive & Notes
if: steps.semver.outputs.version != ''
Expand Down

0 comments on commit 109d00a

Please sign in to comment.