Skip to content

Commit 4fbdf57

Browse files
committed
Add release
1 parent 3306814 commit 4fbdf57

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/deploy-class-commands.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,19 @@ jobs:
2222

2323
- run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore
2424

25-
- run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --self-contained -r win-x64 -p:PublishSingleFile=true
25+
- run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --self-contained -r win-x64 -p:PublishSingleFile=true --no-build
26+
27+
- uses: actions/create-release@v1
28+
id: create_release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag_name: ${{ github.ref }}
33+
release_name: ${{ github.ref }}
34+
35+
- uses: csexton/release-asset-actions@v2
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
pattern: ClassCommands/bin/Release/netcoreapp3.1/win-x64/publish/*.exe
39+
release-url: ${{ steps.create_release.outputs.upload_url }}
2640

0 commit comments

Comments
 (0)