|
9 | 9 | push: |
10 | 10 | tags: ['decoders-*', 'v*'] |
11 | 11 |
|
| 12 | +permissions: |
| 13 | + contents: write |
| 14 | + |
12 | 15 | jobs: |
| 16 | + prepare-release: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - name: Create GitHub release for tag |
| 20 | + if: startsWith(github.ref, 'refs/tags/') |
| 21 | + run: | |
| 22 | + gh release view "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" || |
| 23 | + gh release create "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" \ |
| 24 | + --title "Flightpatch ${GITHUB_REF_NAME}" \ |
| 25 | + --notes "Unsigned Flightpatch Windows beta. Windows may show SmartScreen warnings; see https://flightpatch.app for installation guidance." |
| 26 | + env: |
| 27 | + GH_TOKEN: ${{ github.token }} |
| 28 | + |
13 | 29 | dumpvdl2-windows: |
| 30 | + needs: prepare-release |
14 | 31 | runs-on: windows-latest |
15 | 32 | defaults: |
16 | 33 | run: |
|
95 | 112 | # *redistributable* (a downloadable msi, not a full WDK install) supplies the |
96 | 113 | # driver co-installers, so no local WDK — which is what broke the earlier try. |
97 | 114 | wdi-simple-windows: |
| 115 | + needs: prepare-release |
98 | 116 | runs-on: windows-latest |
99 | 117 | defaults: |
100 | 118 | run: |
@@ -147,6 +165,7 @@ jobs: |
147 | 165 | # feed.adsbiq.com:30004). MalcolmRobb/dump1090 is Windows-aware (#ifndef _WIN32) |
148 | 166 | # and Beast-capable; built under MSYS2 like the VDL2 decoder. |
149 | 167 | dump1090-windows: |
| 168 | + needs: prepare-release |
150 | 169 | runs-on: windows-latest |
151 | 170 | defaults: |
152 | 171 | run: |
@@ -245,3 +264,14 @@ jobs: |
245 | 264 | name: flightpatch-setup-unsigned |
246 | 265 | path: installer/out/*.exe |
247 | 266 | if-no-files-found: error |
| 267 | + |
| 268 | + - name: Attach unsigned installer and update binary to release |
| 269 | + if: startsWith(github.ref, 'refs/tags/') |
| 270 | + shell: bash |
| 271 | + run: | |
| 272 | + set -euxo pipefail |
| 273 | + cp installer/dist/adsbiq-feed-agent.exe \ |
| 274 | + installer/out/adsbiq-feed-agent-windows-amd64.exe |
| 275 | + gh release upload "${GITHUB_REF_NAME}" installer/out/*.exe --clobber |
| 276 | + env: |
| 277 | + GH_TOKEN: ${{ github.token }} |
0 commit comments