mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 11:05:26 +01:00
only trigger for pull_requests and releases
This commit is contained in:
5
.github/workflows/build_documentation.yml
vendored
5
.github/workflows/build_documentation.yml
vendored
@@ -2,7 +2,6 @@ name: Build and upload Documentation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push: # Only for Testing change later
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- developer
|
- developer
|
||||||
@@ -88,7 +87,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Copy documentation and Release notes to versioned folder
|
- name: Copy documentation and Release notes to versioned folder
|
||||||
# if: github.event_name == 'release' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
|
if: github.event_name == 'release' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ steps.version.outputs.version }}"
|
VERSION="${{ steps.version.outputs.version }}"
|
||||||
mkdir -p "gh-pages/${VERSION}"
|
mkdir -p "gh-pages/${VERSION}"
|
||||||
@@ -100,7 +99,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Commit and Push changes to gh-pages
|
- name: Commit and Push changes to gh-pages
|
||||||
# if: github.event_name == 'release' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
|
if: github.event_name == 'release' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
|
||||||
run: |
|
run: |
|
||||||
cd gh-pages
|
cd gh-pages
|
||||||
git config --global user.name 'github-actions'
|
git config --global user.name 'github-actions'
|
||||||
|
|||||||
Reference in New Issue
Block a user