ci: handling sentry release

This commit is contained in:
wonderlandpark 2021-07-02 23:13:22 +09:00
parent 809ac099b1
commit fa0c70a185

View File

@ -39,11 +39,6 @@ jobs:
with: with:
mysql database: 'discordbots' mysql database: 'discordbots'
mysql root password: 'test' mysql root password: 'test'
- name: Wait for MySQL
run: |
while ! mysqladmin ping --host=127.0.0.1 --password=test --silent; do
sleep 1
done
- name: Run Jest - name: Run Jest
run: yarn test run: yarn test
- name: Generate RSA Key Pair - name: Generate RSA Key Pair
@ -56,12 +51,13 @@ jobs:
run: | run: |
mv .env.demo.local .env.production.local mv .env.demo.local .env.production.local
printf 'MARIADB_ROOT_PASSWORD=YOUSHALLNOTPASS\nCOMMIT_HASH=${{ github.sha }}' > .env printf 'MARIADB_ROOT_PASSWORD=YOUSHALLNOTPASS\nCOMMIT_HASH=${{ github.sha }}' > .env
- name: Create needed files
run: echo '{"tester":"DEMO_KEY"}' > secret.json
- name: Build - name: Build
run: yarn build run: yarn build
env: env:
CI: true CI: true
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
# docker: # docker:
# needs: # needs: