Skip to content

Merge pull request #25 from Palaten-Studios/frontline #26

Merge pull request #25 from Palaten-Studios/frontline

Merge pull request #25 from Palaten-Studios/frontline #26

Workflow file for this run

name: Publish to github pages
on:
push:
branches: ["master"]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20
- name: Build palaten_api spec
run: npx redoc-cli build -o build/openapi/palaten_api/index.html openapi/palaten_api.yaml
- name: Build Vuepress
run: cd docs && npm install && npm run build && mv src/.vuepress/dist/* ../build
- name: Archive artifact
shell: sh
if: runner.os == 'Linux'
run: |
echo ::group::Archive artifact
tar \
--dereference --hard-dereference \
--directory "./build" \
-cvf "./artifact.tar" \
--exclude=.git \
--exclude=.github \
.
echo ::endgroup::
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: ./artifact.tar
- name: Deploy GitHub Pages site
uses: actions/[email protected]