Skip to content

Merge pull request #106 from DFE-Digital/add-licence #80

Merge pull request #106 from DFE-Digital/add-licence

Merge pull request #106 from DFE-Digital/add-licence #80

name: Publish documentation
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build site
uses: ./.github/actions/build-site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'documentation/site/output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4