diff --git a/.github/workflows/win_cli_build.yml b/.github/workflows/win_cli_build.yml index d9946f7..0dd1fc0 100644 --- a/.github/workflows/win_cli_build.yml +++ b/.github/workflows/win_cli_build.yml @@ -1,12 +1,18 @@ name: Windows geodiff.exe build -on: [push, pull_request] +on: + push: + pull_request: + release: + types: [created] jobs: win_cli_build: + permissions: + contents: write runs-on: windows-2025 steps: - name: Checkout Geodiff - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Build Geodiff shell: pwsh @@ -29,3 +35,9 @@ jobs: name: geodiff.exe path: ${{ env.geodiff_exe }} if-no-files-found: error + + - name: Release + uses: softprops/action-gh-release@v2 + if: github.event_name == 'release' && github.event.action == 'created' + with: + files: ${{ env.geodiff_exe }}