Skip to content

Commit

Permalink
unified workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aloneguid committed Nov 6, 2024
1 parent a151c7b commit ed911d2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 59 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,31 @@ jobs:
path: artifacts/*


release:
runs-on: ubuntu-latest
needs:
- build
- test
if: github.ref == 'refs/heads/master'
steps:

- uses: actions/download-artifact@v4
with:
name: bin

- name: print releaes notes
run: cat release-notes.md

# publish to nuget regardless
- name: Push to nuget.org
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

- name: 📢 Create release
uses: softprops/action-gh-release@v1
if: ${{ !env.VERSION_SUFFIX }}
with:
tag_name: ${{ env.VERSION }}
name: ${{ env.VERSION }}
files: |
*.nupkg
body_path: release-notes.md
37 changes: 0 additions & 37 deletions .github/workflows/lib1.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/prerelease.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/Stowage.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
..\.editorconfig = ..\.editorconfig
..\.gitignore = ..\.gitignore
..\.github\workflows\prerelease.yml = ..\.github\workflows\prerelease.yml
..\.github\workflows\lib.yml = ..\.github\workflows\lib.yml
..\.github\workflows\lib1.yml = ..\.github\workflows\lib1.yml
..\docs\README.md = ..\docs\README.md
..\docs\README.v1.md = ..\docs\README.v1.md
..\docs\release-history.md = ..\docs\release-history.md
Expand Down

0 comments on commit ed911d2

Please sign in to comment.