Skip to content

Commit 31668ef

Browse files
authored
Merge pull request #15 from Scriptim/gh-actions
2 parents 1e7712e + 5faeeff commit 31668ef

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/vuedeploy.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: deploy-vue-gh-pages
2+
run-name: Deploy Vue to GitHub Pages
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 17.x
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Build
20+
run: npm run build
21+
- name: Deploy
22+
uses: JamesIves/github-pages-deploy-action@releases/v3
23+
with:
24+
folder: dist
25+
git-config-name: GitHub Actions Deploy
26+
git-config-email: <>

vue.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ const { defineConfig } = require('@vue/cli-service');
22

33
module.exports = defineConfig({
44
transpileDependencies: true,
5+
publicPath: process.env.NODE_ENV === 'production' ? '/bash-prompt-generator/' : '/',
56
});

0 commit comments

Comments
 (0)