Skip to content

Commit 7c71a0d

Browse files
committed
DNS record is now managed by infra config
1 parent 8fb624d commit 7c71a0d

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,27 @@ on:
44
push:
55
branches: [ "main" ]
66

7+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
719
jobs:
8-
build_and_deploy:
20+
build:
921
runs-on: ubuntu-latest
1022

1123
steps:
12-
- uses: actions/checkout@v3
13-
24+
- uses: actions/checkout@v4
25+
1426
- name: Use Node.js 22
15-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
1628
with:
1729
node-version: '22'
1830

@@ -21,11 +33,18 @@ jobs:
2133
npm install
2234
npm run export
2335
24-
- name: Deploy to GitHub Pages
25-
if: success()
26-
uses: peaceiris/actions-gh-pages@v4
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
2738
with:
28-
github_token: ${{ secrets.GITHUB_TOKEN }}
29-
publish_dir: ./out
30-
publish_branch: gh-pages
31-
cname: wiki.watonomous.ca
39+
path: ./out
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)