Skip to content

Bump github/codeql-action from 2.20.2 to 2.20.3 #171

Bump github/codeql-action from 2.20.2 to 2.20.3

Bump github/codeql-action from 2.20.2 to 2.20.3 #171

name: GitHub Pages Publish
on:
pull_request:
# By default, the pull_request event type is not triggered when a PR is merged into gatsbyjs
push:
branches:
- gatsbyjs
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: ${{ github.ref != 'refs/heads/gatsbyjs' && 'Build site' || 'Build and publish site' }}
uses: enriikke/gatsby-gh-pages-action@6293db9dd9d25701c5220c26a8716ac8322b6588 # v2.2.1
with:
access-token: x-access-token:${{ secrets.GITHUB_TOKEN }}
# Publish the site only if merging into gatsbyjs branch
skip-publish: ${{ github.ref != 'refs/heads/gatsbyjs' }}
deploy-branch: master