c08be69618
* docker: use slim alpine image to remove bundling deps in Docker image * pin remaining yml actions * use lockfile * remove pulling
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: New Sentry production release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release
|
|
|
|
jobs:
|
|
sentry:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
with:
|
|
node-version: 20.x
|
|
- name: Install and build
|
|
run: |
|
|
yarn --frozen-lockfile
|
|
yarn build:app
|
|
env:
|
|
CI: true
|
|
- name: Install Sentry
|
|
run: |
|
|
curl -sL https://sentry.io/get-cli/ | bash
|
|
- name: Create new Sentry release
|
|
run: |
|
|
export SENTRY_RELEASE=$(sentry-cli releases propose-version)
|
|
sentry-cli releases new $SENTRY_RELEASE --project $SENTRY_PROJECT
|
|
sentry-cli releases set-commits --auto $SENTRY_RELEASE
|
|
sentry-cli sourcemaps upload --release $SENTRY_RELEASE --no-rewrite ./build/static/js/ --url-prefix "~/static/js"
|
|
sentry-cli releases finalize $SENTRY_RELEASE
|
|
sentry-cli releases deploys $SENTRY_RELEASE new -e production
|
|
env:
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|