2022-05-11 02:11:45 +08:00
|
|
|
name: Build
|
|
|
|
on:
|
2022-12-21 19:57:15 +08:00
|
|
|
pull_request: {}
|
2022-05-11 02:11:45 +08:00
|
|
|
push:
|
2023-06-27 02:20:35 +08:00
|
|
|
branches: [livekit, full-mesh]
|
2022-05-11 02:11:45 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-19 17:24:34 +08:00
|
|
|
uses: actions/checkout@v4
|
2022-05-11 02:11:45 +08:00
|
|
|
- name: Yarn cache
|
2023-10-24 00:19:30 +08:00
|
|
|
uses: actions/setup-node@v4
|
2022-05-11 02:11:45 +08:00
|
|
|
with:
|
2022-11-04 02:43:41 +08:00
|
|
|
cache: "yarn"
|
2022-05-11 02:11:45 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: "yarn install"
|
|
|
|
- name: Build
|
|
|
|
run: "yarn run build"
|
2023-01-03 18:48:48 +08:00
|
|
|
env:
|
|
|
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
|
|
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
|
|
|
SENTRY_URL: ${{ secrets.SENTRY_URL }}
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
2023-09-01 21:59:52 +08:00
|
|
|
VITE_APP_VERSION: ${{ github.sha }}
|
2023-02-14 20:29:47 +08:00
|
|
|
NODE_OPTIONS: "--max-old-space-size=4096"
|
2022-05-11 02:11:45 +08:00
|
|
|
- name: Upload Artifact
|
2023-12-15 01:44:38 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-05-11 02:11:45 +08:00
|
|
|
with:
|
|
|
|
name: build
|
2022-05-11 02:20:15 +08:00
|
|
|
path: dist
|
2022-05-11 02:11:45 +08:00
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|