-
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (31 loc) · 992 Bytes
/
build.yaml
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
31
32
33
34
35
36
37
name: Shipp it baby
on:
push:
branches:
- main
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
env:
working-directory: ./demos/vue
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
cache-dependency-path: demos/vue/package-lock.json
- name: Install dependencies
if: steps.gimme_cache.outputs.cache-hit == false
run: npm install
working-directory: ${{env.working-directory}}
- name: Build 🔧
run: npm run build
working-directory: ${{env.working-directory}}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./demos/vue/dist # The folder the action should deploy.