Skip to content

Set redirects as site closing #4

Set redirects as site closing

Set redirects as site closing #4

name: Deploy (development)
on:
push:
branches:
- development
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: development
lfs: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ./.node-version
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn run test
- run: yarn run generate:dev
- run: "echo \"User-agent: *\nDisallow: /\" > ./dist/robots.txt"
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_STOPCOVID19_TOKYO }}'
channelId: live
projectId: stopcovid19-tokyo
target: development