From 19269916acc29e03aeab354e2bf554dd068e383e Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Wed, 17 Dec 2025 14:49:46 +0100 Subject: [PATCH 1/2] Readd upload of example artifacts on release Signed-off-by: Pierre R. Mai --- .github/workflows/build.yaml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fa3699b..b79d72a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -57,3 +57,41 @@ jobs: with: name: Examples-${{ runner.os }} path: examples/build/**/*.fmu + + update_interface_release: + name: Update OSI release + runs-on: ubuntu-latest + needs: [build-osmp-examples] + if: ${{ github.event.client_payload }} + steps: + - name: Collect previous artifacts + uses: actions/download-artifact@v5 + with: + pattern: Examples-* + path: examples + - name: Zip Windows + uses: TheDoctor0/zip-release@0.7.6 + with: + filename: Examples-Windows.zip + directory: examples + path: examples-Windows + - name: Zip Linux + uses: TheDoctor0/zip-release@0.7.6 + with: + filename: Examples-Linux.zip + directory: examples + path: examples-Linux + - name: Zip macOS + uses: TheDoctor0/zip-release@0.7.6 + with: + filename: Examples-macOS.zip + directory: examples + path: examples-macOS + - name: Upload artifacts to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.MACHINE_USER_PAT }} + file_glob: true + file: examples/Examples-*.zip + tag: ${{ github.event.client_payload.tag }} + repo_name: ${{ github.event.client_payload.source_repo }} From 4a6a1dd541ad254a2570efe912f65ba851dfbfab Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Fri, 19 Dec 2025 10:03:54 +0100 Subject: [PATCH 2/2] Adjust remote workflow module updates Signed-off-by: Pierre R. Mai --- .github/workflows/remote_release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/remote_release.yml b/.github/workflows/remote_release.yml index 3dae457..ad08572 100644 --- a/.github/workflows/remote_release.yml +++ b/.github/workflows/remote_release.yml @@ -22,12 +22,13 @@ jobs: run: | git submodule init git submodule update --recursive --remote - cd examples/open-simulation-interface + cd examples/osi-cpp git checkout ${{ github.event.client_payload.tag }} + git submodule update cd ../.. git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git add . + git add examples/osi-cpp git commit -m "git submodule updated" continue-on-error: true @@ -40,15 +41,13 @@ jobs: git tag ${REPO_TAG} - name: GitHub Push - uses: CasperWA/push-protected@v2.15.0 + uses: ad-m/github-push-action@v0.6.0 with: # Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }} - token: ${{ secrets.MACHINE_USER_PAT }} - branch: master + github_token: ${{ secrets.MACHINE_USER_PAT }} # Determines if --tags is used tags: true force: true - unprotect_reviews: true - name: Trigger examples creation uses: peter-evans/repository-dispatch@v2