Skip to content

github/workflows: add verification of building docs #216

github/workflows: add verification of building docs

github/workflows: add verification of building docs #216

name: Project Checks
on:
push:
branches:
- main
- "release/**"
- "test/**"
pull_request:
branches:
- main
- "release/**"
env:
GO_VERSION: "1.19.5"
jobs:
verify:

Check failure on line 18 in .github/workflows/project-checks.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/project-checks.yaml

Invalid workflow file

You have an error in your yaml syntax on line 18
name: Minimal PR Verification
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/nri-plugin-collection
fetch-depth: 25
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: make verify
run: |
make verify
working-directory: src/github.com/containerd/nri-plugin-collection
- name: Build docs
run: |
make site-build
make clean-html
- name: Install gh-pages build dependencies
run: |
pip3 install --user -r docs/requirements.txt
echo "`python3 -m site --user-base`/bin" >> $GITHUB_PATH
- name: Verify update of gh-pages
run: |
git config user.name "Github"
git config user.email "[email protected]"
./scripts/build/update-gh-pages.sh