Skip to content

Commit 6e434a6

Browse files
webwarrior-wsknocte
authored andcommitted
GithubCI: split "deployReleaseBinaries" job in two
Split the job deployReleaseBinaries in two: - One called packReleaseBinaries, that just uploads stuff as artifact. - Another one called publishReleaseBinaries, that uploads nuget packages to nuget.org. - The 2 integration tests run after packReleaseBinaries is green. - After the 2 integration tests pass, then publishReleaseBinaries runs (using packReleaseBinaries' artifacts, with the download-artifact action).
1 parent 9e57659 commit 6e434a6

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/build+test+deploy.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: make selfcheck
3838

3939

40-
deployReleaseBinaries:
40+
packReleaseBinaries:
4141
needs: buildAndTest
4242
runs-on: ubuntu-latest
4343

@@ -54,6 +54,23 @@ jobs:
5454
with:
5555
name: binaries
5656
path: ./out/*.nupkg
57+
58+
publishReleaseBinaries:
59+
needs:
60+
- packReleaseBinaries
61+
- testReleaseBinariesInDotNet8Container
62+
- testReleaseBinariesWithDotNet10
63+
runs-on: ubuntu-latest
64+
65+
steps:
66+
- uses: actions/checkout@v4
67+
- name: Restore tools
68+
run: dotnet tool restore
69+
- name: Download artifact
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: binaries
73+
path: ./out/
5774
- name: Get Changelog Entry
5875
id: changelog_reader
5976
uses: mindsers/changelog-reader-action@v1
@@ -89,7 +106,7 @@ jobs:
89106

90107

91108
deployReleaseDocs:
92-
needs: deployReleaseBinaries
109+
needs: publishReleaseBinaries
93110
runs-on: ubuntu-latest
94111

95112
steps:
@@ -110,7 +127,7 @@ jobs:
110127
force_orphan: true
111128

112129
testReleaseBinariesInDotNet8Container:
113-
needs: deployReleaseBinaries
130+
needs: packReleaseBinaries
114131
runs-on: ubuntu-latest
115132
container:
116133
image: mcr.microsoft.com/dotnet/sdk:8.0
@@ -144,7 +161,7 @@ jobs:
144161
run: dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0
145162

146163
testReleaseBinariesWithDotNet10:
147-
needs: deployReleaseBinaries
164+
needs: packReleaseBinaries
148165
runs-on: ubuntu-latest
149166
steps:
150167
- run: dotnet --list-sdks

0 commit comments

Comments
 (0)