Skip to content

Commit

Permalink
Bump versions, add workload restore
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed May 2, 2024
1 parent 8b05356 commit 60d00f4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
TERM: xterm

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Pack
working-directory: src
Expand All @@ -66,7 +66,7 @@ jobs:
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json

- name: Publish artifact
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
name: packaged-template
path: ./src/package
2 changes: 1 addition & 1 deletion src/templatepack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<Version>1.1.8</Version>
<Version>1.2.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion src/templates/.github/workflows/ci_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ jobs:
- uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: Workflow.SDKVersion

# if not using any workloads (e.g, Aspire, Wasm, Maui), remove this step
- name: Restore workloads
run: dotnet workload restore

- name: Restore
run: dotnet restore

Expand Down
2 changes: 1 addition & 1 deletion src/templates/.template.config/dotnetcli.host.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
},
"usageExamples": [
"--sdk-version 8.0.100",
"--sdk-version 8.0.204",
"-sdk 8.0.x",
"-sdk 8.0.x -n build"
]
Expand Down

0 comments on commit 60d00f4

Please sign in to comment.