Skip to content

Update guidance on dissasociate #119

Update guidance on dissasociate

Update guidance on dissasociate #119

Workflow file for this run

# This is a workflow to publish the Style Guide site to GitHub Pages
name: Publish to GitHub Pages
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
types:
- closed
branches: [ "main" ]
workflow_dispatch:
concurrency:
group: github-pages
cancel-in-progress: false
permissions:
contents: read
pages: write
id-token: write
jobs:
if_merged_or_push:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event_name == 'push'
steps:
- run: |
echo A PR has been merged or a push has occurred.
build:
needs: if_merged_or_push
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Antora
run: npm i -global @antora/[email protected]
- name: Install Antora Site Generator
run: npm i -global @antora/[email protected]
- name: Generate Site
run: npx antora antora-playbook.yml
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2