From 531b3feb41906017db32f7737a6c1a7fc0c33070 Mon Sep 17 00:00:00 2001 From: Bartosz Blizniak Date: Tue, 11 Jun 2024 16:04:54 +0100 Subject: [PATCH] test version naming --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 276c877..c6237d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,16 @@ jobs: run: echo "VERSION=$(cat cloudsmith_cli/data/VERSION)" >> $GITHUB_ENV - name: Create Zipapp run: shiv -o cloudsmith-${{ env.VERSION }}.pyz -c cloudsmith . - + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.VERSION }} + release_name: Release ${{ env.VERSION }} + draft: false + prerelease: false - name: Upload Release Asset id: upload-release-asset uses: actions/upload-release-asset@v1 @@ -33,4 +42,4 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./cloudsmith-${{ env.VERSION }}.pyz asset_name: cloudsmith-${{ env.VERSION }}.pyz - asset_content_type: application/zip + asset_content_type: application/zip \ No newline at end of file