cannot upload artefact commit to gh-pages

This commit is contained in:
2026-01-12 17:43:16 +01:00
parent f238078ca3
commit add2a89a0a

View File

@@ -8,9 +8,13 @@ on:
env: env:
BUILD_TYPE: RELEASE BUILD_TYPE: RELEASE
permissions:
contents: read
pages: write
id-token: write
jobs: jobs:
build: build-and-deploy:
strategy: strategy:
matrix: matrix:
patform: [ubuntu-latest] patform: [ubuntu-latest]
@@ -47,21 +51,29 @@ jobs:
uses: actions/upload-pages-artifact@v4 uses: actions/upload-pages-artifact@v4
with: with:
path: build/docs/html # maybe we need to upload images as well - so one can click on them? path: build/docs/html # maybe we need to upload images as well - so one can click on them?
- name: Checkout gh-pages
deploy: uses: actions/checkout@v4
environment:
name: github-pages
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
with: with:
branch: gh-pages # visible branch for Pages ref: gh-pages
#folder: "v${{ github.ref_name }}" # deploy to version subfolder path: gh-pages
folder: "."
- name: Copy documentation to gh-pages # create folder structure
run: cp build/docs/html/* gh-pages/
- name: Commit and Push changes to gh-pages
run: |
cd gh-pages
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add .
git commit -m "Update Documentation"
git push origin gh-pages