-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 887 Bytes
/
Copy pathdeploy.yml
File metadata and controls
39 lines (30 loc) · 887 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
31
32
33
34
35
36
37
38
39
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy CD
on:
push:
branches: [ master ]
jobs:
deploy:
name: Deploy to Build
runs-on: ubuntu-latest
steps:
# Prereqs
- uses: actions/checkout@v2
# Setup the node env
- name: Setup the Node Env
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: install
run: npm ci
- name: build
run: npm run build
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}