Skip to content

Commit

Permalink
use new workflow for creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhevita committed Dec 22, 2023
1 parent 42175f8 commit edb17e5
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore

- name: Build with .NET Core
- name: Build
run: dotnet publish -c Release -f net8.0 -o out/${{ github.event.repository.name }}

- name: Upload artifacts
Expand Down Expand Up @@ -55,19 +55,8 @@ jobs:

- name: Create GitHub release
id: github_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/[email protected]
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.event.repository.name }} V${{ github.ref }}

- name: Upload artifacts to GitHub release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.github_release.outputs.upload_url }}
asset_path: out/generic.zip
asset_name: generic.zip
asset_content_type: application/zip
artifacts: "out/*"
makeLatest: true
release_name: ${{ github.event.repository.name }} V${{ github.ref_name }}

0 comments on commit edb17e5

Please sign in to comment.