Skip to content

Merge pull request #25 from tgilabs/workflow-works #12

Merge pull request #25 from tgilabs/workflow-works

Merge pull request #25 from tgilabs/workflow-works #12

name: Deploy to GitHub Pages
on:
push:
branches: ["Production"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
install:
runs-on: ubuntu-latest
name: 📦 Install
outputs:
sha: ${{ steps.checkout.outputs.commit_sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
working-directory: src
- name: Build Docusaurus
run: npm run build
working-directory: src
deploy:
needs: install
name: 🚀 Deploy
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: src/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
environment:
name: Workway Updates
url: ${{ steps.deployment.outputs.page_url }}