Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
- name: Setup .NET (8 and 9)
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
dotnet-version: |
9.0.304
8.0.407

- name: Restore dependencies
run: dotnet restore
- name: Restore
run: dotnet restore VexTile.Renderers.sln

- name: Build
run: dotnet build --configuration Release --no-restore
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,28 @@ on:

jobs:
nuget-publish:
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
- name: Setup .NET (8 and 9)
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
dotnet-version: |
9.0.304
8.0.407

- name: Pack solution
run: dotnet pack VexTile.Renderers.sln -c Release -o nugets
- name: Restore
run: dotnet restore VexTile.Renderers.sln

- name: Build (Release)
run: dotnet build VexTile.Renderers.sln -c Release -p:ContinuousIntegrationBuild=true --no-restore

- name: Pack (no build)
run: dotnet pack VexTile.Renderers.sln -c Release -o nugets --no-build

- name: Push to NuGet
if: ${{ inputs.release_nugets }}
run: nuget push "nugets\**\*.nupkg" -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_APIKEY}}
if: ${{ inputs.release_nugets }}
run: dotnet nuget push "nugets/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key "${{ secrets.NUGET_APIKEY }}" --skip-duplicate
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -400,3 +400,5 @@ FodyWeavers.xsd
*.sln.iml

.idea/
/nugets
*.lock.json
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@
-->
<NoWarn>$(NoWarn);NU1803;NU1701;NU1702;S112,S1135;S1066,S3925,S1116,S1075;NU1009</NoWarn>
</PropertyGroup>

<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Project>
3 changes: 2 additions & 1 deletion VexTile.Renderers.sln
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36414.22 d17.14
VisualStudioVersion = 17.14.36414.22
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{91E5AD39-7402-4D0A-BB0F-9B21C48283F9}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.github\workflows\build.yml = .github\workflows\build.yml
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
global.json = global.json
LICENSE = LICENSE
images\logo.png = images\logo.png
README.md = README.md
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"allowPrerelease": false,
"version": "9.0.304",
"rollForward": "disable"
}
}
Loading