Show links for remote snippets even with no example content #61
This file contains 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 deploy | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install dependencies and build | |
run: | | |
npm install | |
yarn build --base=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ | |
cp index.html dist/404.html | |
- name: Setup GH Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload GH Pages | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: './dist' | |
- name: Deploy GH Pages | |
uses: actions/deploy-pages@v1 |