Skip to content

Show options

Show options #60

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- .github/**
- src/**
- index.html
- vite.config.ts
jobs:
test:
name: Jest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- run: |
yarn
yarn test
typecheck:
name: Typescript
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- run: |
yarn
yarn typecheck
deploy:
name: Deploy to Github Pages
permissions:
pages: write
needs:
- test
- typecheck
runs-on: ubuntu-latest
env:
OPEN_WEATHER_API_KEY: ${{ secrets.OPEN_WEATHER_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build
run: |
yarn
yarn tailwind
yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: dist