Skip to content

Commit

Permalink
WIP: attach packages to slint gh release
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Sep 11, 2024
1 parent fb1c34c commit c0ffcf8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit c0ffcf8

Please sign in to comment.