frontend: Refactor confetti and Yace modules #1781
Workflow file for this run
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: ci/cd | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
environment: stage | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: ./bin/make ci | |
env: | |
TERM: vt100 | |
- run: ./bin/make deploy | |
env: | |
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_EVY_LANG }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
release: | |
runs-on: ubuntu-latest | |
needs: [ci] | |
if: ${{ github.event_name == 'push' }} # only run on push to main | |
environment: prod | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: ./bin/make release | |
env: | |
GITHUB_APP_ID: ${{ secrets.EVYLANGBOT_GITHUB_APP_ID }} | |
GITHUB_APP_PEM: ${{ secrets.EVYLANGBOT_GITHUB_APP_PEM }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: ./bin/make deploy-prod | |
env: | |
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_EVY_LANG }} | |
howl-on-fail: | |
runs-on: ubuntu-latest | |
needs: [ci, release] | |
if: ${{ always() && github.event_name == 'push' && ( needs.ci.result == 'failure' || needs.release.result == 'failure' ) }} | |
steps: | |
- uses: foxygoat/howl@v1 | |
env: | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
SLACK_TEXT: <!here|here> |