comment null-assignments out (#1228) #1165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Sentry Releases | |
on: | |
push: | |
branches: [master] | |
jobs: | |
release_js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Yarn packages | |
id: yarn-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.yarn | |
.pnp.cjs | |
.pnp.loader.mjs | |
node_modules/.cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install yarn dependencies | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn install --immutable | |
- name: Build JavaScript | |
run: yarn run production | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: csrdelft | |
SENTRY_PROJECT: stek | |
with: | |
environment: prod | |
sourcemaps: ./htdocs/dist/js | |
release_php: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create Sentry release | |
if: env.SENTRY_AUTH_TOKEN != '' | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: csrdelft | |
SENTRY_PROJECT: stek | |
with: | |
environment: prod |