Skip to content

Add blog post on using the ISRM with EarthSciLab #3

Add blog post on using the ISRM with EarthSciLab

Add blog post on using the ISRM with EarthSciLab #3

Workflow file for this run

name: website
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch: # Allow for running this manually.
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
build:
name: build website
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- name: Generate command documentation
# This writes the automatically generated documentation in docs/cmd
# and docs/output_options.md, which the website build requires.
run: go generate .
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install website dependencies
run: npm ci
working-directory: website
- name: Build website
run: npx docusaurus-build
working-directory: website
- name: Upload the built website
uses: actions/upload-pages-artifact@v3
with:
# docusaurus-build writes the site to a subdirectory named after
# the projectName in website/siteConfig.js.
path: website/build/InMAP
deploy:
name: deploy website
# Only publish the website for changes that land on master; for pull
# requests and other branches the build job above just checks that the
# website still builds.
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4