Skip to content

Commit

Permalink
Update pages-build-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bicarbon8 committed May 24, 2024
1 parent 102c8e2 commit 46fdf29
Showing 1 changed file with 41 additions and 12 deletions.
53 changes: 41 additions & 12 deletions .github/workflows/pages-build-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,50 @@
name: pages-build-deployment
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
workflow_dispatch:
# Runs on pushes targeting the default branch
push:
branches:
- main
branches: ["main", "master"]

# 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

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy-pages:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '16'
- name: Install Dependencies
id: installdeps
run: npm ci
- name: Build HTML docs
id: builddocs
- name: Generate Docs
run: npm run docs
- uses: actions/deploy-pages@v4
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload docs directory to GitHub Pages Artefacts Feed
path: './docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 46fdf29

Please sign in to comment.