From fbb4de81c36b17ad29c542572fd88006004e256b Mon Sep 17 00:00:00 2001 From: jziolkowski Date: Tue, 17 Sep 2024 02:51:37 +0200 Subject: [PATCH] update CI --- .github/workflows/release.yml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c46904a..d072e19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,32 +59,15 @@ jobs: env: VERSION_TAG: ${{ needs.Binaries.outputs.version-tag }} steps: - - uses: actions/checkout@v3 - - # Create a draft release - name: Create Draft Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.VERSION_TAG }} - release_name: TDM ${{ env.VERSION_TAG }} - draft: ${{ github.ref_name != 'refs/heads/develop'}} + name: TDM ${{ env.VERSION_TAG }} + draft: true prerelease: ${{ github.ref_name == 'refs/heads/develop'}} - - - - name: Download artifacts from build - uses: actions/download-artifact@v3 - with: - path: dist - - # Upload release assets: each file in `dist/` to the GitHub Release - - name: Upload Release Assets - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - for asset in dist/tdmgr/*; do - echo "Uploading asset: $asset" - gh release upload ${{ env.VERSION_TAG }} "$asset" --clobber - done + generate_release_notes: true + files: tdmgr/*