Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Sep 17, 2024
1 parent 1088554 commit fbb4de8
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

0 comments on commit fbb4de8

Please sign in to comment.