Skip to content

Commit

Permalink
Fix for CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigHawker committed Mar 22, 2023
1 parent dc99599 commit 635fcb3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
jobs:
build:
timeout-minutes: 10
runs-on: 'windows-latest'
runs-on: 'windows-2022'


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

- name: versionSuffix
shell: pwsh
Expand All @@ -30,14 +30,14 @@ jobs:
run: |
$versionNumber = Get-Date -Format "yy.M.${{ github.run_number }}${{ env.versionSuffix }}"
echo "versionNumber=$versionNumber" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1

- name: Setup dot net
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.101
dotnet-version: 6.0.x

- name: Create nuget package
run: dotnet pack ./MFilesAPI.Extensions/MFilesAPI.Extensions.csproj --configuration Release -p:Version=${{ env.versionNumber }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ on:
jobs:
build:
timeout-minutes: 10
runs-on: 'windows-latest'
runs-on: 'windows-2022'


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

- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1

- name: Setup dot net
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.101
dotnet-version: 6.0.x

- name: Restore NuGet packages
run: nuget restore MFilesAPI.Extensions.sln
Expand Down

0 comments on commit 635fcb3

Please sign in to comment.