Skip to content

fix(ci): add .megalinter_github_conf to .gitignore (#1280) #5949

fix(ci): add .megalinter_github_conf to .gitignore (#1280)

fix(ci): add .megalinter_github_conf to .gitignore (#1280) #5949

Workflow file for this run

---
name: Build & Publish Documentation
on:
push:
permissions:
contents: read
jobs:
build_antora_site:
name: Build Antora Documentation
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: philips-software/antora-site-action@422b8cbeee7fd1e3fd8dfa7d114b953410390b98 # v1.4.1
with:
antora_playbook: antora-playbook-site.yml
- name: Store Antora Site
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: antora
path: "${{ github.workspace }}/build/site"
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/site
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
build_antora_branch:
name: Build Antora Documentation for the current branch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: philips-software/antora-site-action@422b8cbeee7fd1e3fd8dfa7d114b953410390b98 # v1.4.1
with:
antora_playbook: antora-playbook-branch.yml
- name: Store Antora Site
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: antora-branch
path: "${{ github.workspace }}/build/site"
deploy_antora:
permissions:
contents: write
runs-on: ubuntu-latest
needs: build_antora_site
if: ${{ github.ref == 'refs/heads/main' }}
name: Publish to GitHub Pages
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Retrieve Antora Site
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: antora
path: "${{ github.workspace }}/build/site"
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/site
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"