From b93533aedb67779fdd370c3bd0dcf8372a1fd0bb Mon Sep 17 00:00:00 2001 From: Luciano Vitti Date: Thu, 16 Jun 2022 08:43:55 -0300 Subject: [PATCH] Actions (#4) * change package name * create RELEASE_VERSION variable * set draft to false on release job --- .github/workflows/dotnet.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b33fb02..9aa5f0d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -14,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Setup .NET Core SDK 6.0 uses: actions/setup-dotnet@v2 with: @@ -30,9 +32,10 @@ jobs: uses: papeloto/action-zip@v1 with: files: release/SubdivX.dll - dest: SubdivX-${{ github.ref }}.zip + dest: SubdivX-${{ env.RELEASE_VERSION }}.zip - name: Release uses: softprops/action-gh-release@v1 with: - draft: true - files: ${{ github.workspace }}/SubdivX-${{ github.ref }}.zip + draft: false + name: Release ${{ env.RELEASE_VERSION }} + files: ${{ github.workspace }}/SubdivX-${{ env.RELEASE_VERSION }}.zip