mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 07:08:53 +01:00
cannot upload artefact commit to gh-pages
This commit is contained in:
40
.github/workflows/build_documentation.yml
vendored
40
.github/workflows/build_documentation.yml
vendored
@@ -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]
|
||||||
@@ -48,20 +52,28 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user