Skip to content

Always show full forecast #52

Always show full forecast

Always show full forecast #52

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- .github/**
- src/**
- index.html
- vite.config.ts
jobs:
check-format:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- run: |
yarn
yarn check-format
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- run: |
yarn
yarn lint
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:
- check-format
- test
- lint
- 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