Skip to content

Commit

Permalink
Actions (#4)
Browse files Browse the repository at this point in the history
* change package name
* create RELEASE_VERSION variable
* set draft to false on release job
  • Loading branch information
lvitti authored Jun 16, 2022
1 parent 0348ecf commit b93533a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit b93533a

Please sign in to comment.