Merge pull request #1244 from tsg-ut/feat/sushi-bot-wakeup-achievements #502
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: Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| name: Deploy Firebase Configuration | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@master | |
| - name: Setup Tools | |
| uses: asdf-vm/actions/install@v3 | |
| with: | |
| # https://github.com/asdf-vm/actions/issues/587 | |
| asdf_branch: v0.15.0 | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Create functions/.env | |
| run: | | |
| echo "SLACK_TOKEN=${{ secrets.FUNCTIONS_SLACK_TOKEN }}" >> functions/.env | |
| echo "AWS_ACCESS_KEY_ID=${{ secrets.FUNCTIONS_AWS_ACCESS_KEY_ID }}" >> functions/.env | |
| echo "AWS_SECRET_ACCESS_KEY=${{ secrets.FUNCTIONS_AWS_SECRET_ACCESS_KEY }}" >> functions/.env | |
| - name: Deploy to Firebase | |
| uses: w9jds/firebase-action@master | |
| with: | |
| args: deploy --project=production | |
| env: | |
| FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |