2022-05-10 18:11:45 +00:00
|
|
|
name: Build
|
|
|
|
on:
|
2022-12-21 11:57:15 +00:00
|
|
|
pull_request: {}
|
2022-05-10 18:11:45 +00:00
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
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:
|
2022-11-03 18:43:41 +00:00
|
|
|
cache: "yarn"
|
2022-05-10 18:11:45 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: "yarn install"
|
|
|
|
- name: Build
|
|
|
|
run: "yarn run build"
|
2023-01-03 10:48:48 +00:00
|
|
|
env:
|
|
|
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
|
|
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
|
|
|
SENTRY_URL: ${{ secrets.SENTRY_URL }}
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
2022-05-10 18:11:45 +00:00
|
|
|
- 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
|