Skip to content

Add CI artifact build for the book #1

Add CI artifact build for the book

Add CI artifact build for the book #1

Workflow file for this run

on:
pull_request:
type: [opened]
push:
jobs:
build-manual:
runs-on: ubuntu-22.04
image: rust:latest

Check failure on line 8 in .github/workflows/manual.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/manual.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/manual.yaml (Line: 8, Col: 5): Unexpected value 'image'
steps:
- uses: actions/checkout@v4
- name: Declare some variables
shell: bash
run: |
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
# Install mdbook
- name: Install `mdbook`
run: cargo install mdbook
# Build the book
- name: Build the book
run: |
cd docs/manuel
mdbook build
# Package artifact
- name: Package artifact
uses: actions/upload-artifact@v3
with:
name: manuel-backend-${{ env.branch }}-${{ env.sha_short }}
path: book