Skip to content

[docs] Install gems with --user-install #4

[docs] Install gems with --user-install

[docs] Install gems with --user-install #4

Workflow file for this run

name: Build and Deploy Documentation
# Defines when the action will run.
on:
push:
branches:
- main # Trigger the action on pushes to the main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest # Specifies the runner environment
env:
GEM_HOME: ${{ github.workspace }}/.gem
PATH: ${{ github.workspace }}/.gem/bin:${{ env.PATH }}

Check failure on line 15 in .github/workflows/deploy_docs.yaml

View workflow run for this annotation

GitHub Actions / Build and Deploy Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_docs.yaml (Line: 15, Col: 13): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PATH
steps:
- name: Checkout repo
uses: actions/checkout@v3 # Checks out your repository under $GITHUB_WORKSPACE
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x' # Ensures Python 3.x is installed, adjust as needed for your project
- name: Install Asciidoctor and Asciidoctor-Diagram
run: |
gem install asciidoctor asciidoctor-diagram asciidoctor-pdf --user-install
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make # Install make if not available
- name: Run Make
run: |
cd docs # Changes directory to where the Makefile is located
make ci # Executes your Make target that builds docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/doc/dist # Adjusts the path to the build output directory