Merge pull request #458 from hearchco/as/fix/params #4
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: ['v*.*.*'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
PUBLIC_UI_VERSION: ${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'pnpm' # must be preinstalled | |
# switch svelte.config.js to use aws adapter | |
- run: make aws | |
# install dependencies and build | |
- run: make install | |
- run: make compile | |
# zip the build directory | |
- run: | | |
cd build/ && zip -r ../hearchco-frontend-build-aws.zip . | |
# upload the build to the release | |
- uses: softprops/action-gh-release@v2 | |
with: | |
files: hearchco-frontend-build-aws.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |