Skip to content

Commit

Permalink
Update publish.yml (SaturnFramework#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak authored and Arshia001 committed Jul 9, 2022
1 parent 508958b commit 1eecb46
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,13 @@ jobs:
env:
nuget-key: ${{ secrets.NUGET_KEY }}

- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.3.1
with:
version: ${{ github.ref }}
path: ./CHANGELOG.md

path: build
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.changelog_reader.outputs.log_entry }}
draft: false
prerelease: false

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: ncipollo/release-action@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*.nupkg
tag: ${{ github.ref }}
overwrite: true
file_glob: true
artifacts: build/*.nupkg
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true

0 comments on commit 1eecb46

Please sign in to comment.