Skip to content

Update from https://github.com/dscc-admin-ch/lomas/commit/80dd76ae84c… #23

Update from https://github.com/dscc-admin-ch/lomas/commit/80dd76ae84c…

Update from https://github.com/dscc-admin-ch/lomas/commit/80dd76ae84c… #23

name: Publish documentation to Github Pages
on:
push:
branches: [ main ]
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Pages
id: pages
uses: actions/configure-pages@v3
- name: Package and upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: html/
# Deploy job
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
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@v4