Skip to content

Commit

Permalink
Publish docs with GitHub Actions (orchidjs#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalters512 authored Nov 19, 2024
1 parent fb6ac54 commit 6d8c71e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 35 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish docs to GitHub pages

on:
push:
branches:
- master

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run build:docs

- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './build-docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
35 changes: 0 additions & 35 deletions .github/workflows/eleventy.yml

This file was deleted.

0 comments on commit 6d8c71e

Please sign in to comment.