Skip to content

Commit 02cc0cc

Browse files
committed
Update how to install Google Chrome on GitHub Actions
1 parent abb2bd5 commit 02cc0cc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/github-pages.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,16 @@ jobs:
3434
- name: Install dependencies
3535
run: npm ci
3636

37+
- name: Install Chrome
38+
uses: browser-actions/setup-chrome@v1
39+
id: setup-chrome
40+
3741
- name: Build Marp slide deck
38-
run: CHROME_PATH=$(npx -y @puppeteer/browsers@latest install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') npm run build
42+
run: npm run build
3943
env:
4044
# Please update URL if you want to use custom domain
4145
URL: https://${{ github.event.repository.owner.name }}.github.io/${{ github.event.repository.name }}
46+
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
4247

4348
- name: Upload page artifacts
4449
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)