Skip to content

Merge pull request #114 from codytodonnell/main #8

Merge pull request #114 from codytodonnell/main

Merge pull request #114 from codytodonnell/main #8

Workflow file for this run

name: Deploy to GitHub Pages
on:
# Runs on pushes to the main branch
push:
branches: ["main"]
# 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: write
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
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install docs dependencies
run: |
cd docs
npm install
- name: Install demo dependencies
run: |
cd strudel-taskflows
npm install
- name: Build docs
run: |
cd docs
npm run build
- name: Build demo
run: |
cd strudel-taskflows
npm run build
env:
VITE_BASE_URL: /strudel-kit/demo/
- name: Deploy docs
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
cd docs
npx gh-pages -d build -e docs -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy demo
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
cd strudel-taskflows
npx gh-pages -d dist -e demo -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}