Close
AlgoliaLogoLight
Close full mode
logo

Deploy Gatsby to GitHub Pages

Git RepositoryEdit on Github

Simple GitHub Actions workflow to deploy Gatsby to GitHub page

# https://github.com/enriikke/gatsby-gh-pages-action/blob/main/README.md
name: Publish Gatsby to GitHub pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: enriikke/gatsby-gh-pages-action@v2
with:
# access-token is a GitHub Personal access token with the a 'repo' scope
access-token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
deploy-branch: gh-pages

Credit

Loading comments...