diff --git a/.github/workflows/imswitch-bundle.yml b/.github/workflows/imswitch-bundle.yml index fe0360dae..c5a270415 100644 --- a/.github/workflows/imswitch-bundle.yml +++ b/.github/workflows/imswitch-bundle.yml @@ -6,14 +6,18 @@ on: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + jobs: + + + build: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [windows-latest] - + steps: - uses: actions/checkout@v2 with: @@ -44,3 +48,27 @@ jobs: with: name: imswitch-${{ matrix.os }} path: dist + + - name: release + uses: actions/create-release@v1 + id: create_release + with: + draft: false + prerelease: false + release_name: ${{steps.version.outputs.version}} + tag_name: ${{github.ref}} + body_path: CHANGELOG.md + env: + GITHUB_TOKEN: ${{github.token}} + + - name: upload windows-exe-update artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: .dist/ImSwitch/ImSwitch.exe + asset_name: ImSwitch.exe + asset_content_type: application/exe + +