Skip to content

chore(main): release 3.1.0 (#136) #101

chore(main): release 3.1.0 (#136)

chore(main): release 3.1.0 (#136) #101

Workflow file for this run

name: website
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
website:
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "0.4.42"
- name: Download mdbook-admonish
run: |
mkdir ${{ env.TARGET }}
curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/${{ env.VERSION }}/${{ env.TARGET }}.tar.gz | tar -xz --directory=${{ env.TARGET }}
echo `pwd`/${{ env.TARGET }} >> $GITHUB_PATH
env:
VERSION: "v1.18.0"
TARGET: "mdbook-admonish-v1.18.0-x86_64-unknown-linux-gnu"
- name: Download mdbook-alerts
run: |
mkdir ${{ env.TARGET }}
curl -sSLo ${{ env.TARGET }}/${{ env.BINARY }} https://github.com/lambdalisue/rs-mdbook-alerts/releases/download/${{ env.VERSION }}/${{ env.TARGET }}
chmod +x ${{ env.TARGET }}/${{ env.BINARY }}
echo `pwd`/${{ env.TARGET }} >> $GITHUB_PATH
env:
VERSION: "v0.6.9"
BINARY: "mdbook-alerts"
TARGET: "mdbook-alerts-x86_64-unknown-linux-gnu"
- name: Setup PNPM
uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Build mdBook
run: |
mdbook build
working-directory: ./example
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./example/book/"
- name: Deploy artifact to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4