Serve both UI assets and REST API from handler

This commit is contained in:
Ken Hibino
2021-10-10 06:33:38 -07:00
parent b20cf02f3b
commit ccdd6cea01
35 changed files with 620 additions and 234 deletions

View File

@@ -36,29 +36,12 @@ jobs:
- name: Install NPM packages
run: cd ui && rm yarn.lock && yarn install
- name: Build UI Bundle
run: cd ui && yarn build
- name: Create Release Archive
run: tar -czvf ui-assets.tar.gz -C ui/build .
- name: Build release binary
- name: Build Release Binary
run: |
GOOS=${{ matrix.goos }} GOARCH=amd64 make build
tar -czvf asynqmon_${{ steps.release.outputs.tag_name }}_${{ matrix.goos }}_amd64.tar.gz asynqmon
ls
- name: Upload UI Bundle
id: upload-ui-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./ui-assets.tar.gz
asset_name: ui-assets.tar.gz
asset_content_type: application/gzip
- name: Upload Release Binary
id: upload-go-release-asset
uses: actions/upload-release-asset@v1