Skip to content

chore: update .gitignore #3

chore: update .gitignore

chore: update .gitignore #3

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one deploy at a time; do not cancel an in-flight run so a publish
# that has already reached GitHub Pages can finish cleanly.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm ci
# Call docusaurus directly rather than `npm run build`: the `prebuild`
# hook tries to regenerate src/generated/dockerBaseConfigs.ts from a
# sibling ../grobid-home/ checkout that only exists in local dev
# environments. The generated TS files are committed to git, so the
# build has everything it needs without the hook.
- name: Build site
run: npx docusaurus build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4