-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 1009 Bytes
/
test-deploy.yml
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
name: Test deploy
on:
pull_request:
branches:
- main
permissions: write-all
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.3
with:
node-version: 20
- name: Install Node dependencies
run: npm install --ignore-scripts
- name: Build
run: npm run build
- name: Copy dist files to source
run: cp -r gxcko.me/dist/index.html gxcko.me/index.html && cp -r gxcko.me/dist/assets gxcko.me/assets
- name: Clean up ./dist
run: rm -r gxcko.me/dist/assets && rm gxcko.me/dist/index.html
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./gxcko.me
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3