Skip to content

Commit

Permalink
Merge pull request #15 from tkzt/main
Browse files Browse the repository at this point in the history
Improves CI configurations
  • Loading branch information
tkzt authored Aug 4, 2024
2 parents 8cb8f0d + ea2bbc5 commit 50d13d8
Show file tree
Hide file tree
Showing 5 changed files with 3,303 additions and 2,822 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ on:
branches: [ main ]

jobs:
lint_build_deploy:
env:
VITE_BASE: /fine-weather
VITE_IMG_FETCH_BASE: https://bryanthe.pythonanywhere.com
name: Lint and build and deploy
lint:
name: App Lint
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -39,17 +36,3 @@ jobs:

- name: Lint
run: pnpm run lint

- name: Build
run: pnpm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./app/dist





42 changes: 42 additions & 0 deletions .github/workflows/app_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
1 change: 1 addition & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_IMG_FETCH_BASE=/manager
VITE_BASE=/
Loading

0 comments on commit 50d13d8

Please sign in to comment.