diff options
author | Sadie Powell <sadie@witchery.services> | 2024-04-15 10:58:33 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-04-15 11:57:40 +0100 |
commit | 62deedfa755d9c7e20be59e513ce27e087419f3b (patch) | |
tree | 6498e6331ecc09f57430556a7e2d4d414ed6adb2 /.github | |
parent | 44af4eac6bf63232453b8a9a76c592c07e60aa37 (diff) |
Automatically upload the Windows package on release.
[skip alpine ci]
[skip ubuntu ci]
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci-windows.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index bdf82230c..963261e93 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -2,6 +2,9 @@ name: Windows CI on: pull_request: push: + release: + types: + - published schedule: - cron: '0 0 * * 0' jobs: @@ -27,9 +30,17 @@ jobs: run: | mkdir ${{ github.workspace }}\build cd ${{ github.workspace }}\build - cmake -A "x64" -G "Visual Studio 16 2019" .. + cmake -A "x64" -D "CMAKE_BUILD_TYPE=${{ github.event_name == 'release' && 'Release' || 'Debug' }}" -G "Visual Studio 16 2019" .. - name: Build Anope working-directory: ${{ github.workspace }}\build run: | - msbuild PACKAGE.vcxproj /M:3 /P:Configuration=Release /P:Platform=x64 /VERBOSITY:MINIMAL + msbuild PACKAGE.vcxproj /M:3 /P:Configuration=${{ github.event_name == 'release' && 'Release' || 'Debug' }} /P:Platform=x64 /VERBOSITY:MINIMAL + + - name: Upload installer + if: "${{ github.event_name == 'release' }}" + working-directory: ${{ github.workspace }}\build + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload ${{ github.event.release.tag_name }} $(Get-ChildItem anope-*.exe) |