From c0ffcf804a23c4afe7fb5f1a44b49135fa71ad82 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 11 Sep 2024 13:51:55 +0200 Subject: [PATCH] WIP: attach packages to slint gh release --- .github/workflows/release.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e5ad708..7566e80 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,6 +5,16 @@ name: Release on: workflow_dispatch: + inputs: + private: + type: boolean + default: true + required: false + description: "Private build? True means artifacts are only built. False means the artefacts are published (docs, vscode extension) to the web/marketplace" + gh_release: + type: string + description: name of github release to upload to + default: "nightly" jobs: build_packages: @@ -14,7 +24,7 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: sparse-checkout: ${{ matrix.board }} - name: build source package @@ -55,3 +65,14 @@ jobs: run: | cmake --build --preset Debug + upload_packages: + if: github.event.inputs.private != 'true' + needs: [test_packages] + runs-on: ubuntu-20.04 + steps: + - uses: actions/download-artifact@v4 + with: + pattern: slint-cpp-template-* + merge-multiple: true + - run: | + gh release upload --repo slint-ui/slint ${{github.event.inputs.gh_release}} *.zip \ No newline at end of file