Skip to content

Commit

Permalink
build: update github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Aug 13, 2024
1 parent 58966e9 commit b95a35d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: "yarn"
cache: 'yarn'
node-version: ${{ matrix.node-version }}
- uses: actions/setup-java@v3
with:
distribution: "adopt"
java-version: "11"
distribution: 'adopt'
java-version: '11'
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@7.0
with:
Expand Down Expand Up @@ -104,11 +104,17 @@ jobs:
- name: build and release
env:
SNOWPACK_PUBLIC_SENTRY_DSN: ${{ secrets.SNOWPACK_PUBLIC_SENTRY_DSN }}
SNOWPACK_PUBLIC_FLUENT_ENV: "debug-release"
SNOWPACK_PUBLIC_FLUENT_ENV: 'debug-release'
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).version }}
run: yarn prod:release
run: yarn build

- name: zip files
run: |
zip -r ./dist/chrome.zip ./dist/chrome
zip -r ./dist/firefox.zip ./dist/firefox
zip -r ./dist/edge.zip ./dist/edge
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: releases/*
asset_path: dist/*.zip
10 changes: 8 additions & 2 deletions .github/workflows/prod-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,18 @@ jobs:
SNOWPACK_PUBLIC_SENTRY_DSN: ${{ secrets.SNOWPACK_PUBLIC_SENTRY_DSN }}
SNOWPACK_PUBLIC_FLUENT_ENV: "production"
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ steps.dotenv.outputs.SNOWPACK_PUBLIC_FLUENT_VERSION }}
run: yarn prod:release
run: yarn build

- name: zip files
run: |
zip -r ./dist/chrome.zip ./dist/chrome
zip -r ./dist/firefox.zip ./dist/firefox
zip -r ./dist/edge.zip ./dist/edge
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: releases/*
asset_path: dist/*.zip

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

0 comments on commit b95a35d

Please sign in to comment.