Merge pull request #233 from OpenMined/bugfix-2026 #44
This file contains hidden or 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: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| courses: | |
| name: Deploy Courses Production | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@master | |
| - name: Use Node 12.x | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '12.x' | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Build Courses | |
| run: yarn build courses --prod | |
| - name: Deploy Courses to Firebase | |
| uses: w9jds/firebase-action@master | |
| with: | |
| args: deploy --only hosting:openmined-education | |
| env: | |
| PROJECT_ID: production | |
| FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
| - name: Create Sentry release | |
| uses: getsentry/action-release@v1 | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
| SENTRY_PROJECT: ${{ secrets.SENTRY_COURSES_PROJECT }} | |
| with: | |
| environment: production |