Skip to content

Commit

Permalink
fix: Dotnet release action
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus committed Jun 12, 2024
1 parent d2e7856 commit b285108
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-connect-dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:

jobs:
build_test:
strategy:
matrix:
swagger_json: ['connect/swagger_api.json']
language: [['csharp', 'connect/dotnet']]
name: Build
runs-on: ubuntu-latest
steps:
Expand All @@ -24,10 +20,6 @@ jobs:
dotnet-version: '8.0.x'

- name: Build Connect Dotnet SDK
run: ./connect/make-swagger.ps1 -language ${{ matrix.language[0] }} -swaggerFile ${{ matrix.swagger_json }} -outputFolder ${{ matrix.language[1] }}
shell: pwsh

- name: Build and format
run: ./.github/workflows/connect/build-dotnet.ps1
shell: pwsh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/connect/build-dotnet.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Regenerate the swagger too
Set-Location $PSScriptRoot/../../../
&./connect/make-swagger.ps1 -language "csharp" -swaggerFile "connect/swagger_api.json" -outputFolder 'connect/dotnet'
Set-Location $PSScriptRoot/../../../connect/dotnet
# Run the build script
dotnet format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connect/release-dotnet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotnet pack -c Release -o $publishFolder
if ($ApiKey -eq "")
{
Write-Host "No NuGet API key set, skipping push"
exit 0
exit -1
}
foreach ($item in get-childitem $publishFolder -recurse | select-object FullName | where { $_.FullName.EndsWith(".nupkg") })
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-connect-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
apiGithubToken: ${{ secrets.GITHUB_TOKEN }}
commitMessage: "Updated dotnet released package version"
githubAssignee: ${{ github.actor }}
prTitle: "Updated Dotnet Released Package Version"
prTitle: "Updated dotnet Released Package Version"
githubBranch: "main"
githubWorkingDirectory: "."
githubRepository: "trinsic-id/sdk"
Expand Down

0 comments on commit b285108

Please sign in to comment.