Skip to content

Commit

Permalink
Merge pull request #2 from mPokornyETM/simulate-gh-pages
Browse files Browse the repository at this point in the history
testsSimulate gh pages
  • Loading branch information
mPokornyETM authored Dec 17, 2023
2 parents a9fb35a + 9f101ea commit 56877da
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/createBundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: CI

on:
push:
branches: [ "main", "release/*" , "tests-*"]
branches: [ "main", "release/*" , "feature/*"]
# tags: ["v*"]
pull_request:
branches: [ "main", "release/*" ]
release:
types: [published]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
Expand Down Expand Up @@ -170,7 +176,7 @@ jobs:
options: --user root
credentials:
username: mpokornyetm
password: ${{ secrets.DOCKER_CONTAINER_REGISTRY_TOKEN }}
password: ${{ secrets.DOCKER_CONTAINER_REGISTRY_TOKEN }}
steps:
- name: Install doxygen
working-directory: /opt/WinCC_OA/3.19/bin/
Expand Down Expand Up @@ -264,7 +270,7 @@ jobs:
options: --user root
credentials:
username: mpokornyetm
password: ${{ secrets.DOCKER_CONTAINER_REGISTRY_TOKEN }}
password: ${{ secrets.DOCKER_CONTAINER_REGISTRY_TOKEN }}
needs: [build, package]
steps:
Expand Down Expand Up @@ -363,25 +369,23 @@ jobs:
with:
files: WinCCOA_QualityChecks_${{ github.event.release.tag_name }}.zip


# inspired by https://nimblehq.co/blog/create-github-wiki-pull-request
publish-help:
if: github.event_name == 'release'
# !! TODO enable it only on release
# if: github.event_name == 'release'
name: Publish help
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: tests
steps:
- name: Download help
uses: actions/download-artifact@v3
with:
name: html-help
path: ${{github.workspace}}/public/
path: ${{github.workspace}}/docs/

- name: Publish GitHub pages help
uses: peaceiris/actions-gh-pages@v3
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
# if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.WIKI_ACTION_TOKEN }}
publish_dir: ./public
publish_dir: ./docs

0 comments on commit 56877da

Please sign in to comment.