Github Pages
Custom actions are available to deploy Scraps to Github Pages.
YAML file
Prepare a yaml file under .github/workflows/
like this
on: push
name: Build and deploy GH Pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # For scraps git commited date
- name: build_and_deploy
uses: boykush/scraps-deploy-action@v2
env:
# Target branch
PAGES_BRANCH: gh-pages
# Provide personal access token
TOKEN: ${{ secrets.GITHUB_TOKEN }}
GitHub settings
Set up GitHub Pages for the repository.
Build and deployment
parameter as follows.
- Source:
Deploy from a branch
- Branch:
gh-pages