Skip to content

Commit 2b86d57

Browse files
authored
Update static.yml
1 parent d2a23b4 commit 2b86d57

File tree

1 file changed

+41
-20
lines changed

1 file changed

+41
-20
lines changed

.github/workflows/static.yml

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,66 @@
11
# .github/workflows/static.yml
2-
name: Deploy static content to Pages
2+
name: Deploy to GitHub Pages
33

44
on:
55
push:
6-
branches: ["main"]
6+
branches: [main]
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
concurrency:
15-
group: "pages"
16-
cancel-in-progress: true
10+
contents: write
1711

1812
jobs:
19-
deploy:
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
13+
build_and_deploy:
2314
runs-on: ubuntu-latest
2415
steps:
25-
- name: Checkout repository
16+
- name: Checkout repo
2617
uses: actions/checkout@v4
2718

2819
- name: Setup Node.js
2920
uses: actions/setup-node@v4
3021
with:
31-
node-version: '20'
22+
node-version: 20
3223

3324
- name: Run build script
3425
run: |
3526
chmod +x Build/Buildscripts/build.sh
3627
./Build/Buildscripts/build.sh
3728
38-
- name: Upload GitHub Pages artifact
39-
uses: actions/upload-pages-artifact@v3
29+
- name: Deploy to GitHub Pages
30+
uses: JamesIves/github-pages-deploy-action@v4
31+
with:
32+
branch: gh-pages
33+
folder: Build/dist
34+
# .github/workflows/static.yml
35+
name: Deploy to GitHub Pages
36+
37+
on:
38+
push:
39+
branches: [main]
40+
workflow_dispatch:
41+
42+
permissions:
43+
contents: write
44+
45+
jobs:
46+
build_and_deploy:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout repo
50+
uses: actions/checkout@v4
51+
52+
- name: Setup Node.js
53+
uses: actions/setup-node@v4
4054
with:
41-
path: 'Build/dist'
55+
node-version: 20
56+
57+
- name: Run build script
58+
run: |
59+
chmod +x Build/Buildscripts/build.sh
60+
./Build/Buildscripts/build.sh
4261
4362
- name: Deploy to GitHub Pages
44-
id: deployment
45-
uses: actions/deploy-pages@v4
63+
uses: JamesIves/github-pages-deploy-action@v4
64+
with:
65+
branch: gh-pages
66+
folder: Build/dist

0 commit comments

Comments
 (0)