Skip to content

Merge pull request #555 from dictybase-docker/dependabot/github_actio… #250

Merge pull request #555 from dictybase-docker/dependabot/github_actio…

Merge pull request #555 from dictybase-docker/dependabot/github_actio… #250

Workflow file for this run

name: Deploy to Pages
on:
push:
branches: ["develop"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: setup Node
uses: actions/setup-node@v6
with:
node-version: "18"
- name: setup Pages
id: pages
uses: actions/configure-pages@v5
with:
# Automatically inject pathPrefix in your Gatsby configuration file.
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: gatsby
- name: restore cache
uses: actions/cache@v5
with:
path: |
public
.cache
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }}
restore-keys: |
${{ runner.os }}-gatsby-build-
- name: install dependencies
run: yarn
- name: build with Gatsby
run: yarn build
- name: upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5