Skip to content

Allow one-off deploys #13

Allow one-off deploys

Allow one-off deploys #13

Workflow file for this run

name: CD
on:
push:
workflow_dispatch:
permissions:
pages: write
id-token: write
concurrency:
group: cd-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Antora build
run: npx antora ./antora-playbook.yml
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: build/site
deploy:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy Pages
id: deployment
uses: actions/deploy-pages@v1