Skip to content

Examples pass ansible-lint. (#111) #27

Examples pass ansible-lint. (#111)

Examples pass ansible-lint. (#111) #27

Workflow file for this run

name: publish document
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: Install requirements
run: sudo dnf install -y git graphviz make plantuml rubygem-asciidoctor rubygem-asciidoctor-pdf rubygem-rouge
- name: Repository checkout
uses: actions/checkout@v3
- name: Move to the correct folder
run: cd $GITHUB_WORKSPACE
- name: Ensure git folder is considered safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Render HTML
run: make release
- name: Git add and force push to docs
run: git add -f docs
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: publish release
file_pattern: docs/*
add_options: '-A --force'
branch: docs # main branch is protected, make sure this one is used for GitHub pages
# the following options are necessary to forcefully overwrite each time the branch
skip_fetch: true
skip_checkout: true
push_options: '--force'