Skip to content

Deploy

Deploy #915

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: '0 15 * * *'
env:
TZ: Asia/Tokyo
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_NUMBER: ${{ github.run_number }}
GOOGLE_SERVICE_ACCOUNT_CREDENTIAL_JSON: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_CREDENTIAL_JSON }}
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn build
- uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4