Skip to content

Commit b6a6acc

Browse files
committed
chore(github,workflows): edit configuration
Signed-off-by: Leonard Sheng Sheng Lee <305414+sheeeng@users.noreply.github.com>
1 parent 20683ca commit b6a6acc

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

.github/workflows/github-pages.yml

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ name: GitHub Pages
33
on:
44
push:
55
branches:
6-
- master
7-
6+
- main
87
workflow_dispatch:
98

10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
9+
permissions: {}
1410

1511
concurrency:
1612
group: pages
@@ -22,32 +18,28 @@ jobs:
2218
name: github-pages
2319
url: ${{ steps.deployment.outputs.page_url }}
2420
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
pages: write
24+
id-token: write
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2727

28-
- name: Install Node.js
29-
uses: actions/setup-node@v6
28+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3029
with:
3130
cache: npm
32-
node-version-file: '.nvmrc'
31+
node-version-file: ".nvmrc"
3332

34-
- name: Install dependencies
35-
run: npm ci
33+
- run: npm ci
3634

37-
- name: Build Marp slide deck
38-
run: CHROME_PATH=$(npx @puppeteer/browsers install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') npm run build
35+
- run: npm run build
3936
env:
4037
# Please update URL if you want to use custom domain
4138
URL: https://${{ github.event.repository.owner.name }}.github.io/${{ github.event.repository.name }}
4239

43-
# Recommend to set lang for your deck to get better rendering for Open Graph image
44-
LANG: en-US
45-
46-
- name: Upload page artifacts
47-
uses: actions/upload-pages-artifact@v4
40+
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
4841
with:
4942
path: public
5043

51-
- name: Deploy to GitHub Pages
44+
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
5245
id: deployment
53-
uses: actions/deploy-pages@main

0 commit comments

Comments
 (0)