Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
LogicAndTrick committed Jun 5, 2022
1 parent 44338e3 commit 86f4b60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/publish-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,7 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish Sledge.Formats
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Sledge.Formats/Sledge.Formats.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Sledge.Formats.Bsp
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Sledge.Formats.Bsp/Sledge.Formats.Bsp.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Sledge.Formats.Map
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Sledge.Formats.Map/Sledge.Formats.Map.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Sledge.Formats.Texture
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Sledge.Formats.Texture/Sledge.Formats.Texture.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Sledge.Formats.Packages
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Sledge.Formats.Packages/Sledge.Formats.Packages.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Sledge.Formats.GameData
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Sledge.Formats.GameData/Sledge.Formats.GameData.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Create packages
run: dotnet pack --no-build --configuration Release --output . --include-symbols -p:SymbolPackageFormat=snupkg
- name: Publish packages
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json -k ${{secrets.CLIARGS_NUGET}} --skip-duplicate
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ PublishScripts/

# NuGet Packages
*.nupkg
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
Expand Down

0 comments on commit 86f4b60

Please sign in to comment.