Skip to content

Commit

Permalink
build(workflow): add strong-name builds to release process
Browse files Browse the repository at this point in the history
  • Loading branch information
wooln committed Dec 13, 2024
1 parent de9f6ad commit e6570d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,29 @@ jobs:
- name: Build with dotnet
run: |
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmcli/Dtmcli.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmgrpc/Dtmgrpc.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmCommon/DtmCommon.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmSERedisBarrier/DtmSERedisBarrier.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmMongoBarrier/DtmMongoBarrier.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmDapr/DtmDapr.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmworkflow/Dtmworkflow.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj
- name: Pack with dotnet
run: |
dotnet pack src/Dtmcli/Dtmcli.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/Dtmgrpc/Dtmgrpc.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmCommon/DtmCommon.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmSERedisBarrier/DtmSERedisBarrier.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmMongoBarrier/DtmMongoBarrier.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmDapr/DtmDapr.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/Dtmworkflow/Dtmworkflow.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release_unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,31 @@ jobs:
- name: Build with dotnet
run: |
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmcli/Dtmcli.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmgrpc/Dtmgrpc.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmCommon/DtmCommon.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmSERedisBarrier/DtmSERedisBarrier.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmMongoBarrier/DtmMongoBarrier.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmDapr/DtmDapr.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmworkflow/Dtmworkflow.csproj
dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj
- name: Pack with dotnet
run: |
ver=alpha`date +%Y%m%d%H%M%S`
dotnet pack src/Dtmcli/Dtmcli.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/Dtmgrpc/Dtmgrpc.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmCommon/DtmCommon.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmSERedisBarrier/DtmSERedisBarrier.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmMongoBarrier/DtmMongoBarrier.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/DtmDapr/DtmDapr.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/Dtmworkflow/Dtmworkflow.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
dotnet pack src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj --version-suffix $ver -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit e6570d9

Please sign in to comment.