ci: updated trigger

This commit is contained in:
wonderlandpark 2021-04-13 14:27:30 +09:00
parent 8683b8a908
commit a20a8b18bd
No known key found for this signature in database
GPG Key ID: E3E650B146478C64

View File

@ -1,10 +1,5 @@
name: CI name: CI
on: on: [push, pull_request]
push:
pull_request:
branches:
- '*'
- '!master'
jobs: jobs:
eslint: eslint:
name: ESLint name: ESLint
@ -57,7 +52,7 @@ jobs:
- name: Create needed files - name: Create needed files
run: echo '{"tester":"DEMO_KEY"}' > secret.json run: echo '{"tester":"DEMO_KEY"}' > secret.json
- name: Build - name: Build
if: github.ref == 'refs/heads/master' if: success() && github.ref == 'refs/heads/master'
run: yarn build run: yarn build
env: env:
NEXT_PUBLIC_SENTRY_SERVER_ROOT_DIR: ./api NEXT_PUBLIC_SENTRY_SERVER_ROOT_DIR: ./api