Skip to content

Commit b95a35d

Browse files
committed
build: update github action config
1 parent 58966e9 commit b95a35d

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/pre-release.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Use Node.js ${{ matrix.node-version }}
3535
uses: actions/setup-node@v3
3636
with:
37-
cache: "yarn"
37+
cache: 'yarn'
3838
node-version: ${{ matrix.node-version }}
3939
- uses: actions/setup-java@v3
4040
with:
41-
distribution: "adopt"
42-
java-version: "11"
41+
distribution: 'adopt'
42+
java-version: '11'
4343
- name: Install clojure tools
4444
uses: DeLaGuardo/setup-clojure@7.0
4545
with:
@@ -104,11 +104,17 @@ jobs:
104104
- name: build and release
105105
env:
106106
SNOWPACK_PUBLIC_SENTRY_DSN: ${{ secrets.SNOWPACK_PUBLIC_SENTRY_DSN }}
107-
SNOWPACK_PUBLIC_FLUENT_ENV: "debug-release"
107+
SNOWPACK_PUBLIC_FLUENT_ENV: 'debug-release'
108108
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).version }}
109-
run: yarn prod:release
109+
run: yarn build
110+
111+
- name: zip files
112+
run: |
113+
zip -r ./dist/chrome.zip ./dist/chrome
114+
zip -r ./dist/firefox.zip ./dist/firefox
115+
zip -r ./dist/edge.zip ./dist/edge
110116
111117
- uses: shogo82148/actions-upload-release-asset@v1
112118
with:
113119
upload_url: ${{ steps.create_release.outputs.upload_url }}
114-
asset_path: releases/*
120+
asset_path: dist/*.zip

.github/workflows/prod-release.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,18 @@ jobs:
9494
SNOWPACK_PUBLIC_SENTRY_DSN: ${{ secrets.SNOWPACK_PUBLIC_SENTRY_DSN }}
9595
SNOWPACK_PUBLIC_FLUENT_ENV: "production"
9696
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ steps.dotenv.outputs.SNOWPACK_PUBLIC_FLUENT_VERSION }}
97-
run: yarn prod:release
97+
run: yarn build
98+
99+
- name: zip files
100+
run: |
101+
zip -r ./dist/chrome.zip ./dist/chrome
102+
zip -r ./dist/firefox.zip ./dist/firefox
103+
zip -r ./dist/edge.zip ./dist/edge
98104
99105
- uses: shogo82148/actions-upload-release-asset@v1
100106
with:
101107
upload_url: ${{ steps.create_release.outputs.upload_url }}
102-
asset_path: releases/*
108+
asset_path: dist/*.zip
103109

104110
- name: Create Pull Request
105111
uses: peter-evans/create-pull-request@v4.0.4

0 commit comments

Comments
 (0)