Skip to content

Reorganize examples into categorized folders (#341) #56

Reorganize examples into categorized folders (#341)

Reorganize examples into categorized folders (#341) #56

Workflow file for this run

name: Build and Deploy the Website
on:
push:
branches: [ main ]
permissions:
contents: write # Pushes to `gh-pages` branch
jobs:
deploy-website:
runs-on: ubuntu-latest
container: node
steps:
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- run: npx envinfo
- name: Build and Deploy
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
USER: gatsby-deploy-bot <support+actions@github.com>
NODE_OPTIONS: --openssl-legacy-provider
working-directory: ./website
run: |
npm install
npx gatsby build --prefix-paths
npx gh-pages -d public -r https://git:${TOKEN}@github.com/${REPO}.git -u "${USER}"