-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.29 KB
/
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
45
46
47
48
49
50
51
52
53
name: Deploy and build site
on:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Git
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Node
uses: actions/setup-node@26961cf329f22f6837d5f54c3efd76b480300ace # v4
with:
node-version: '20.x'
- name: Write Artifact
uses: actions/upload-artifact@v4
with:
name: build-output
path: ./site
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: build-output
path:
./site
- name: List site
- run: echo Site files:
- run: echo | ls ./site
- name: Deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
with:
publish_dir: ./site
github_token: ${{ github.token }}
full_commit_message: 'Build'