diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3edcb039ea..5ebefb454b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: Release on: push: - branches: [master, main, adaptor-dlc] + branches: [master, main, adaptor-dlc, 2021-05-29-windows-msi] tags: ["*"] env: @@ -139,4 +139,26 @@ jobs: with: name: "bitcoin-s-deb-${{steps.previoustag.outputs.tag}}-${{github.sha}}" path: "${{ env.pkg-name }}_${{ steps.previoustag.outputs.tag }}-1_amd64.deb" - + windows: + runs-on: [windows-latest] + steps: + - uses: actions/checkout@v2 + - name: Setup Scala + uses: olafurpg/setup-scala@v10 + with: + java-version: adopt@1.16.0-1 + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: 1.0.0 # Optional fallback tag to use when no tag can be found + - name: Build msi + shell: bash + run: sbt windows:packageBin + - name: View artifacts + run: ls -R . + - name: Upload installer + uses: actions/upload-artifact@v1 + with: + name: bitcoin-s-msi-${{steps.previoustag.outputs.tag}}-${{github.sha}} + path: "D:\\a\\bitcoin-s\\bitcoin-s\\target\\windows\\bitcoin-s-bundle.msi" \ No newline at end of file