2022-05-10 18:11:45 +00:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
2022-05-10 20:24:20 +00:00
|
|
|
env:
|
|
|
|
VITE_DEFAULT_HOMESERVER: "https://call.ems.host"
|
|
|
|
VITE_SENTRY_DSN: https://b1e328d49be3402ba96101338989fb35@sentry.matrix.org/41
|
|
|
|
VITE_SENTRY_ENVIRONMENT: main-branch-cd
|
|
|
|
VITE_RAGESHAKE_SUBMIT_URL: https://element.io/bugreports/submit
|
2022-05-10 18:11:45 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Yarn cache
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: "yarn install"
|
|
|
|
- name: Build
|
|
|
|
run: "yarn run build"
|
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: build
|
2022-05-10 18:20:15 +00:00
|
|
|
path: dist
|
2022-05-10 18:11:45 +00:00
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|