Skip to content

Commit

Permalink
remove unused action, add comments to release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Heathermcx committed Jan 18, 2024
1 parent f00537d commit 012f423
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/push.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/release.yml
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 ]
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 012f423

Please sign in to comment.