Merge pull request #90 from Strift/update-expansion #15
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: Deploy to production | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy to Firebase Hosting | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://guildes.sulfuron.eu | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js v12 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "12" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Generate static files | |
run: yarn generate | |
- name: Deploy front-end to Firebase | |
uses: lowply/deploy-firebase@v0.0.4 | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_PROJECT: sulfuron-guilds | |
TARGET_BRANCH: master |