Skip to content

Commit 08c34b9

Browse files
chore: update build-and-deploy workflow yml
Signed-off-by: Oluwatunmise-olat <oluwatunmiseolatunbosun2001@gmail.com>
1 parent f058526 commit 08c34b9

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
name: Build and Deploy Site
2+
23
on:
34
push:
45
branches: [master]
56
workflow_dispatch:
67
workflow_call:
7-
8+
9+
permissions:
10+
contents: write
11+
12+
concurrency:
13+
group: "pages-deployment"
14+
cancel-in-progress: true
15+
816
jobs:
917
build-and-deploy:
10-
permissions:
11-
contents: write
12-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-24.04
1319
steps:
1420
- name: Checkout 🛎️
15-
uses: actions/checkout@master
21+
uses: actions/checkout@v6
1622
with:
17-
fetch-depth: 1
23+
fetch-depth: 0
1824

1925
- name: Install and Build 🔧
2026
run: |
2127
make setup
2228
make build
2329
24-
- name: Deploy 🚀
25-
uses: JamesIves/github-pages-deploy-action@v4.7.3
30+
- name: Deploy to GitHub Pages 🚀
31+
uses: peaceiris/actions-gh-pages@v4
2632
with:
27-
branch: site # The branch the action should deploy to.
28-
folder: site/public # The folder the action should deploy.
29-
clean: true
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./site/public
35+
publish_branch: gh-pages
36+
keep_files: true

0 commit comments

Comments
 (0)