Skip to content

ci(website): fix pulling down mdbook-alerts #90

ci(website): fix pulling down mdbook-alerts

ci(website): fix pulling down mdbook-alerts #90

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.TARGET }} https://github.com/lambdalisue/rs-mdbook-alerts/releases/download/${{ env.VERSION }}/${{ env.TARGET }}
echo `pwd`/${{ env.TARGET }} >> $GITHUB_PATH
env:

Check failure on line 37 in .github/workflows/website.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/website.yml

Invalid workflow file

You have an error in your yaml syntax on line 37
VERSION: "v0.6.9"
TARGET: "mdbook-alerts
- 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