-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and push nuget artifacts (#3110)
* Build and push nuget artifacts * Add push nuget workflow job. Refactor magefile to only pack nuget not pack&push Signed-off-by: Ivan Pavlovic <[email protected]> * Add setup latest .NET 7 SDK step to pack nuget job Signed-off-by: Ivan Pavlovic <[email protected]> --------- Signed-off-by: Ivan Pavlovic <[email protected]>
- Loading branch information
1 parent
e1c7950
commit c7681fb
Showing
3 changed files
with
74 additions
and
23 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -54,3 +54,47 @@ jobs: | |
with: | ||
name: armada-image-tarballs | ||
path: /tmp/imgs | ||
|
||
pack-nuget: | ||
runs-on: ubuntu-latest | ||
permissions: {} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: Setup the latest .NET 7 SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
cache: false | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
version: '23.3' | ||
|
||
- name: Create release tag | ||
id: create-release-tag | ||
run: echo "release_tag=$(git describe --tags --always --dirty --match='v*' 2> /dev/null | sed 's/^v//')" >> $GITHUB_OUTPUT | ||
|
||
- name: Pack dotnet clients | ||
env: | ||
RELEASE_TAG: ${{ steps.create-release-tag.outputs.release_tag }} | ||
run: go run github.com/magefile/[email protected] -v download packNuget | ||
|
||
- name: Save nupkg artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nupkg-artifacts | ||
path: | | ||
./bin/client/DotNet/G-Research.Armada.Client.${{ steps.create-release-tag.outputs.release_tag }}.nupkg | ||
./bin/client/DotNet/ArmadaProject.Io.Client.${{ steps.create-release-tag.outputs.release_tag }}.nupkg |
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
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