From 1169b016fdec59eb88f36c735fdfa0f6e0a9da41 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Sat, 13 Apr 2024 14:35:55 +0200 Subject: [PATCH] CI: Publish the example project with pre-built binaries --- .github/actions/publish-extension/action.yml | 2 -- .github/workflows/build-unstable.yml | 30 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/actions/publish-extension/action.yml b/.github/actions/publish-extension/action.yml index fe7228b..09a04e9 100644 --- a/.github/actions/publish-extension/action.yml +++ b/.github/actions/publish-extension/action.yml @@ -17,5 +17,3 @@ runs: GH_TOKEN: ${{ github.token }} run: | gh release upload latest-unstable libgdsion-${{ env.SCONS_PLATFORM }}.zip --clobber - gh release edit latest-unstable --target main - diff --git a/.github/workflows/build-unstable.yml b/.github/workflows/build-unstable.yml index 7f6867b..f3d0a50 100644 --- a/.github/workflows/build-unstable.yml +++ b/.github/workflows/build-unstable.yml @@ -152,3 +152,33 @@ jobs: - name: Publish release uses: ./.github/actions/publish-extension + + build-example-project: + name: Export and publish the example project + runs-on: ubuntu-latest + needs: [ build-linux, build-macos, build-windows, build-web ] + + steps: + - uses: actions/checkout@v4 + + - name: Download GDSiON artifacts + uses: actions/download-artifact@v4 + with: + path: example/bin + merge-multiple: true + + - name: Archive the example project + uses: thedoctor0/zip-release@0.7.5 + with: + type: zip + directory: example + filename: libgdsion-example-project.zip + + - name: Update the rolling release with the example project + shell: bash + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release upload latest-unstable example/libgdsion-example-project.zip --clobber + gh release edit latest-unstable --target $(git log --format="%H" -n 1) +