Skip to content

Commit

Permalink
frontend: deploy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
opheliagame committed Mar 20, 2024
1 parent 522af97 commit 51ce37d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to GH Pages

on:
push:
branches:
- main
workflow_dispatch:


jobs:
build-deploy:
runs-on: ubuntu-latest

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

- name: Install 🔧
working-directory: ./frontend
run: npm i

- name: Build 🏗️
working-directory: ./frontend
run: npm run build
env:
NODE_ENV: production

- name: Deploy to GH Pages 🚀
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: frontend/dist
1 change: 1 addition & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx'

// https://vitejs.dev/config/
export default defineConfig({
base: '/supercut-x-padma/',
plugins: [
vue(),
vueJsx(),
Expand Down

0 comments on commit 51ce37d

Please sign in to comment.