bd sync: 2026-01-11 13:36:00 #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '^12.13.1' | |
| - uses: actions/cache@v1 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install dependencies and Puppeteer | |
| run: | | |
| npm ci | |
| npm i puppeteer --no-save | |
| - name: Build Marp slide deck | |
| run: | | |
| CHROME_PATH=$(node .puppeteer.js) npm run build | |
| touch ./dist/.nojekyll | |
| env: | |
| # Please update URL if you want to use custom domain | |
| URL: https://${{ github.event.repository.owner.name }}.github.io/${{ github.event.repository.name }} | |
| # Recommend to set lang for your deck to get better rendering for Open Graph image | |
| LANG: en-US | |
| - name: Deploy to GitHub pages | |
| uses: JamesIves/github-pages-deploy-action@releases/v3 | |
| with: | |
| ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: dist |