Skip to content

Updated scp action version #2

Updated scp action version

Updated scp action version #2

name: Documentation to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build documentation
id: build
run: |
cd documentation
cp ../settings.ini.docker ./settings.ini
sudo apt install -y pandoc
pip install -r requirements.txt
make html
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: build/html/
# Deployment job
deploy:
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4