mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 09:22:54 +01:00
copied from build instead of docs
This commit is contained in:
7
.github/workflows/build_documentation.yml
vendored
7
.github/workflows/build_documentation.yml
vendored
@@ -88,18 +88,19 @@ 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)
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ steps.version.outputs.version }}"
|
VERSION="${{ steps.version.outputs.version }}"
|
||||||
mkdir -p "gh-pages/${VERSION}"
|
mkdir -p "gh-pages/${VERSION}"
|
||||||
cp -r build/docs/html/. "gh-pages/${VERSION}/"
|
cp -r build/docs/html/. "gh-pages/${VERSION}/"
|
||||||
cp build/docs/main_index/index.html "gh-pages/index.html"
|
cp docs/main_index/index.html "gh-pages/index.html"
|
||||||
cp build/docs/main_index/index.html gh-pages/_sources/index.html.txt
|
cp docs/main_index/index.html "gh-pages/_sources/index.html.txt"
|
||||||
if [ "${{ github.event_name }}" == "release" ]; then
|
if [ "${{ github.event_name }}" == "release" ]; then
|
||||||
cp RELEASE.md "gh-pages/releases/RELEASE_v${VERSION}.md"
|
cp RELEASE.md "gh-pages/releases/RELEASE_v${VERSION}.md"
|
||||||
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)
|
||||||
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