2022-05-16 16:23:44 +02:00
|
|
|
# Separate to the main build workflow for access to develop
|
|
|
|
# environment secrets, largely similar to build.yaml.
|
|
|
|
name: Build and Package develop
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ develop ]
|
|
|
|
repository_dispatch:
|
|
|
|
types: [ element-web-notify ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: "Build & Upload source maps to Sentry"
|
2022-06-14 12:30:12 +02:00
|
|
|
# Only respect triggers from our develop branch, ignore that of forks
|
|
|
|
if: github.repository == 'vector-im/element-web'
|
2022-05-16 16:23:44 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: develop
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: 'yarn'
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: "./scripts/layered.sh"
|
|
|
|
|
|
|
|
- name: Build, Package & Upload sourcemaps
|
|
|
|
run: "./scripts/ci_package.sh"
|
|
|
|
env:
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
|
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
|
|
|
SENTRY_URL: ${{ secrets.SENTRY_URL }}
|
|
|
|
SENTRY_ORG: sentry
|
|
|
|
SENTRY_PROJECT: riot-web
|