forked from Blazor-Diagrams/Blazor.Diagrams
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unused action, add comments to release action
- Loading branch information
1 parent
f00537d
commit 012f423
Showing
2 changed files
with
6 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Create release | ||
# On push to master branch. i.e. when we merge a PR. | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
@@ -24,6 +25,7 @@ jobs: | |
6.0.x | ||
3.1.x | ||
# Finds the latest release and increases the version | ||
- name: Get next version | ||
uses: reecetech/[email protected] | ||
id: version | ||
|
@@ -34,22 +36,26 @@ jobs: | |
- name: Install version tool | ||
run: dotnet tool install -g dotnetCampus.TagToVersion | ||
|
||
# Writes the new version number to build/Version.props | ||
- name: Set version | ||
run: dotnet TagToVersion -t ${{ steps.version.outputs.version }} | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
# Pacakge is created on build | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
|
||
# Upload package as an atrifact to the GitHub action | ||
- name: Upload packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: package | ||
path: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg | ||
retention-days: 5 | ||
|
||
# Create a new release and upload the package to the release | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
|