Skip to content

Update from https://github.com/dscc-admin-ch/lomas/commit/b84127625f5… #90

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

Update from https://github.com/dscc-admin-ch/lomas/commit/b84127625f5… #90

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