99permissions : {}
1010
1111env :
12- RUST_VERSION : 1.89.0
12+ RUST_TOOLCHAIN_VERSION : 1.89.0
13+ RELEASE_TAG : ${{ github.ref_name }}
1314
1415jobs :
1516 create-release :
@@ -34,10 +35,11 @@ jobs:
3435 args : --latest --strip header
3536
3637 - name : Create Draft Release
37- uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
38- with :
39- body : ${{ steps.changelog.outputs.content }}
40- draft : true
38+ env :
39+ RELEASE_NOTES : ${{ steps.changelog.outputs.content }}
40+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ shell : bash
42+ run : gh release create --draft --verify-tag --latest --notes "$RELEASE_NOTES" "RELEASE_TAG"
4143
4244 build :
4345 name : Build boil
@@ -60,10 +62,11 @@ jobs:
6062 with :
6163 persist-credentials : false
6264
63- - uses : dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921
64- with :
65- toolchain : ${{ env.RUST_VERSION }}
66- targets : ${{ matrix.targets.target }}
65+ - name : Setup Rust Toolchain
66+ env :
67+ RUST_TARGETS : ${{ matrix.targets.target }}
68+ shell : bash
69+ run : rustup toolchain install "${RUST_TOOLCHAIN_VERSION}" --target "${RUST_TARGETS}"
6770
6871 - name : Build Binary
6972 env :
@@ -76,10 +79,10 @@ jobs:
7679 run : mv "target/$TARGET/release/boil" "boil-$TARGET"
7780
7881 - name : Upload Artifact to Release
79- uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
80- with :
81- files : boil-${{ matrix.targets.target }}
82- draft : true
82+ env :
83+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84+ shell : bash
85+ run : gh release upload "RELEASE_TAG" boil-${{ matrix.targets.target }}
8386
8487 finish-release :
8588 needs : [build]
9093 contents : write
9194 steps :
9295 - name : Finish Release
93- uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
94- with :
95- draft : false
96+ env :
97+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98+ shell : bash
99+ run : gh release edit --draft=false "$RELEASE_TAG"
0 commit comments