-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.32 KB
/
deploy.yml
File metadata and controls
54 lines (51 loc) · 1.32 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI/CD Pipeline
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CI: true
PUBLIC_URL: /vf-react
jobs:
# test:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [18.x] # Updated Node.js version
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# - name: Install dependencies
# run: yarn install
# - name: Run tests
# run: yarn test --watchAll=false --ci
deploy:
# needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [18.x] # Updated Node.js version
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: yarn install
- name: Build page
run: CI='' yarn build
env:
PUBLIC_URL: /vf-react
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY_150525 }}
publish_dir: ./build