mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-13 21:29:31 +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:
|
||||
workflow_dispatch:
|
||||
push: # Only for Testing change later
|
||||
pull_request:
|
||||
branches:
|
||||
- developer
|
||||
@@ -88,7 +87,7 @@ jobs:
|
||||
|
||||
|
||||
- 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: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
mkdir -p "gh-pages/${VERSION}"
|
||||
@@ -100,7 +99,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- 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: |
|
||||
cd gh-pages
|
||||
git config --global user.name 'github-actions'
|
||||
|
||||
Reference in New Issue
Block a user