-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (27 loc) · 722 Bytes
/
main.yml
File metadata and controls
30 lines (27 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
push:
branches:
- main
jobs:
build_deploy:
name: Build with Vue and deploy to gh page
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
persist-credentials: false
- name: Install and Build
run: |
export NODE_OPTIONS=--openssl-legacy-provider
npm install
npm run build
cd dist
cp index.html 404.html
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist