Skip to content

Commit

Permalink
设置 GA 部署
Browse files Browse the repository at this point in the history
  • Loading branch information
omvjro committed Sep 15, 2024
1 parent a6c7531 commit f5cf95c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- vue

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
2 changes: 1 addition & 1 deletion src/assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
hollows,
} from './data.js';
import {
position, insertTarget,
position, /* insertTarget, */
generateInsertTarget,
insertHard, insert,
getSelectionAndPosition, createSelection,
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
base: "/DOL-pancake/",
plugins: [
vue({
template: {
Expand Down

0 comments on commit f5cf95c

Please sign in to comment.