Skip to content

Merge pull request #33 from Sofia7452/main #3

Merge pull request #33 from Sofia7452/main

Merge pull request #33 from Sofia7452/main #3

Workflow file for this run

name: App Workflow
on:
push:
branches: [ main ]
jobs:
build_deploy:
env:
VITE_BASE: /fine-weather
VITE_IMG_FETCH_BASE: https://fineweather.pythonanywhere.com
name: Build & Deploy
runs-on: ubuntu-latest
defaults:
run:
working-directory: app
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: 'app/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: app/dist