Skip to content

Commit

Permalink
Github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
joshthompson committed Apr 29, 2024
1 parent b5f4afb commit 0fe51dc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false

- name: Install
run: npm install

- name: Build
run: npm run build
env:
BASE_PATH: /svg-flow/

- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export default defineConfig({
build: {
target: 'esnext',
},
base: process.env.BASE_PATH,
});

0 comments on commit 0fe51dc

Please sign in to comment.