-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d04e456
commit ae80e50
Showing
1 changed file
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy Docs Site | ||
# # Simple workflow for deploying static content to GitHub Pages | ||
# name: Deploy Docs Site | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: [main] | ||
# on: | ||
# # Runs on pushes targeting the default branch | ||
# push: | ||
# branches: [main] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# # Allows you to run this workflow manually from the Actions tab | ||
# workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
# # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
# permissions: | ||
# contents: read | ||
# pages: write | ||
# id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
# # Allow one concurrent deployment | ||
# concurrency: | ||
# group: "pages" | ||
# cancel-in-progress: true | ||
|
||
env: | ||
# Hosted GitHub runners have 7 GB of memory available, let's use 6 GB | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
# env: | ||
# # Hosted GitHub runners have 7 GB of memory available, let's use 6 GB | ||
# NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build Docs | ||
run: npm run docs | ||
- name: Build Docs Site | ||
working-directory: site | ||
run: npm run build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: site/build | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
# jobs: | ||
# # Single deploy job since we're just deploying | ||
# deploy: | ||
# environment: | ||
# name: github-pages | ||
# url: ${{ steps.deployment.outputs.page_url }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Set up Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 20 | ||
# cache: npm | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# - name: Build Docs | ||
# run: npm run docs | ||
# - name: Build Docs Site | ||
# working-directory: site | ||
# run: npm run build | ||
# - name: Setup Pages | ||
# uses: actions/configure-pages@v3 | ||
# - name: Upload artifact | ||
# uses: actions/upload-pages-artifact@v2 | ||
# with: | ||
# path: site/build | ||
# - name: Deploy to GitHub Pages | ||
# id: deployment | ||
# uses: actions/deploy-pages@v2 |