Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
domsleee committed May 20, 2024
1 parent 0ff417a commit dd63f13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: |
dotnet pack -c release /p:ContinuousIntegrationBuild=true
cp -r ForceOps/nupkg ForceOps/nupkg_pack
cp -r ForceOps.Lib/nupkg ForceOps.Lib/nupkg_pack
dotnet clean
- name: Build (AOT)
Expand All @@ -54,12 +55,6 @@ jobs:
cp -r ForceOps/bin ForceOps/bin_aot
dotnet clean
- name: Build (release)
run: |
dotnet publish -c release /p:ContinuousIntegrationBuild=true
cp -r ForceOps.Lib/nupkg ForceOps.Lib/nupkg_release
- name: Create release
if: ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }}
uses: softprops/action-gh-release@v1
Expand All @@ -72,4 +67,4 @@ jobs:
- name: Publish NuGet
if: ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }}
run: |
dotnet nuget push -k ${{ secrets.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json ForceOps/nupkg_pack/ForceOps.${{ steps.get_version.outputs.version }}.nupkg ForceOps.Lib/nupkg_release/ForceOps.Lib.${{ steps.get_version.outputs.version }}.nupkg --skip-duplicate
dotnet nuget push -k ${{ secrets.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json ForceOps/nupkg_pack/ForceOps.${{ steps.get_version.outputs.version }}.nupkg ForceOps.Lib/nupkg_pack/ForceOps.Lib.${{ steps.get_version.outputs.version }}.nupkg --skip-duplicate
1 change: 1 addition & 0 deletions ForceOps.Lib/ForceOps.Lib.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageOutputPath>./nupkg</PackageOutputPath>
Expand Down

0 comments on commit dd63f13

Please sign in to comment.