Skip to content

Commit d741bb8

Browse files
authored
Updates CI/CD Pipelines and SDK version target (#67)
1 parent fb43744 commit d741bb8

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ on:
1111
branches: ["main"]
1212
pull_request:
1313
branches: ["main"]
14+
workflow_dispatch:
1415

1516
jobs:
1617
build:
1718
runs-on: windows-latest
19+
env:
20+
HUSKY: 0 # don't run husky.net hooks
1821

1922
steps:
2023
- name: Checkout code
@@ -28,11 +31,13 @@ jobs:
2831
8.0.x
2932
9.0.x
3033
31-
- name: Restore dotnet tools
34+
- name: Restore .NET tools
3235
run: dotnet tool restore
36+
working-directory: .
3337

3438
- name: Restore dependencies
35-
run: dotnet restore ./src
39+
run: dotnet restore
40+
working-directory: ./src
3641

3742
- name: Build
3843
run: dotnet build ./src --no-restore -p:VersionFromCI="0.0.0-cibuild"

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
jobs:
1717
build:
1818
runs-on: ubuntu-latest
19+
env:
20+
HUSKY: 0 # don't run husky.net hooks
1921

2022
steps:
2123
- name: Checkout code
@@ -30,11 +32,13 @@ jobs:
3032
id: extract_version
3133
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
3234

33-
- name: Restore dotnet tools
35+
- name: Restore .NET tools
3436
run: dotnet tool restore
37+
working-directory: .
3538

3639
- name: Restore dependencies
37-
run: dotnet restore ./src
40+
run: dotnet restore
41+
working-directory: ./src
3842

3943
- name: Build
4044
run: dotnet build ./src --no-restore --configuration Release /p:VersionFromCI=${{ env.VERSION }}

src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.101",
3+
"version": "9.0.304",
44
"rollForward": "latestFeature"
55
}
66
}

0 commit comments

Comments
 (0)