Skip to content

Commit a0f4c8d

Browse files
committed
Fix dotnet setup in CI from oss template
1 parent 3b0c5c7 commit a0f4c8d

File tree

6 files changed

+19
-146
lines changed

6 files changed

+19
-146
lines changed

.github/actions/dotnet/action.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/dotnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[
2+
"10.x",
23
"8.x"
3-
]
4+
]

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,17 @@ jobs:
6161
- name: 🤘 checkout
6262
uses: actions/checkout@v4
6363

64+
- name: ⚙ dotnet
65+
uses: devlooped/actions-dotnet-env@v1
66+
6467
- name: 🙏 build
6568
run: dotnet build -m:1 -bl:build.binlog
6669

6770
- name: ⚙ azurite
6871
run: |
6972
npm install azurite
7073
npx azurite &
71-
74+
7275
- name: 🧪 test
7376
run: |
7477
dotnet tool update -g dotnet-retest
@@ -100,6 +103,9 @@ jobs:
100103
- name: 🤘 checkout
101104
uses: actions/checkout@v4
102105

106+
- name: ⚙ dotnet
107+
uses: devlooped/actions-dotnet-env@v1
108+
103109
- name: ✓ ensure format
104110
run: |
105111
dotnet format whitespace --verify-no-changes -v:diag --exclude ~/.nuget

.github/workflows/dotnet-file-core.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ env:
1515
VersionLabel: ${{ github.ref }}
1616
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1717
MSBUILDTERMINALLOGGER: auto
18+
SLEET_FEED_URL: https://api.nuget.org/v3/index.json
1819

1920
jobs:
2021
publish:
21-
runs-on: ubuntu-latest
22+
runs-on: ${{ vars.PUBLISH_AGENT || 'ubuntu-latest' }}
2223
steps:
2324
- name: 🤘 checkout
2425
uses: actions/checkout@v4
2526

27+
- name: ⚙ dotnet
28+
uses: devlooped/actions-dotnet-env@v1
29+
2630
- name: 🙏 build
2731
run: dotnet build -m:1 -bl:build.binlog
2832

@@ -46,13 +50,9 @@ jobs:
4650
- name: 🚀 nuget
4751
env:
4852
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
49-
if: env.NUGET_API_KEY != ''
50-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
51-
52-
- name: ⚙ dotnet
53-
uses: actions/setup-dotnet@v4
54-
with:
55-
dotnet-version: 8.x
53+
if: ${{ env.NUGET_API_KEY != '' && github.event.action != 'prereleased' }}
54+
working-directory: bin
55+
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
5656

5757
- name: 🚀 sleet
5858
env:

.netconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,10 @@
106106
weak
107107
[file ".github/workflows/dotnet-file-core.yml"]
108108
url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-file-core.yml
109-
sha = af171b7a87382ee665ba6fbaeb5f38a3551e1c23
110-
etag = 5ce370f52933ab2a4cd50f2b410e842fc5eab23088db2bf98b6c4d4ccdc9022b
111-
weak
109+
skip
112110
[file ".github/actions/dotnet/action.yml"]
113111
url = https://github.com/devlooped/oss/blob/main/.github/actions/dotnet/action.yml
114-
sha = f2b690ce307acb76c5b8d7faec1a5b971a93653e
115-
etag = 27ea11baa2397b3ec9e643a935832da97719c4e44215cfd135c49cad4c29373f
116-
weak
112+
skip
117113
[file ".github/workflows/dotnet-env.yml"]
118114
url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-env.yml
119115
sha = 77e83f238196d2723640abef0c7b6f43994f9747

0 commit comments

Comments
 (0)