Skip to content

chore: migrate from raskell-io to arcanist-sh #53

chore: migrate from raskell-io to arcanist-sh

chore: migrate from raskell-io to arcanist-sh #53

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
repository_dispatch:
types: [docs-updated]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup mise
uses: jdx/mise-action@v2
with:
experimental: true
- name: Install tools via mise
run: mise install
- name: Build the site
run: mise run build
- name: Clone docs repo
run: git clone --depth 1 --recurse-submodules https://github.com/arcanist-sh/hx.arcanist.sh-docs.git /tmp/docs
- name: Build docs
run: |
cd /tmp/docs
mise install
mise run build
- name: Copy docs to public
run: |
mkdir -p ./public/docs
# Copy docs landing page (from content/_index.md)
cp /tmp/docs/public/index.html ./public/docs/
# Copy docs subsections directly, flattening the nested docs/docs structure
cp -r /tmp/docs/public/docs/* ./public/docs/
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4