Skip to content

Commit a2d3199

Browse files
authored
Merge branch 'main' into feature/distinct-until-changed
2 parents 6f6ae20 + abd88f6 commit a2d3199

File tree

16 files changed

+2366
-44
lines changed

16 files changed

+2366
-44
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
steps:
1111
- name: checkout-code
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v5
1313
with:
1414
fetch-depth: 0
1515

@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
# checkout the code
3030
- name: checkout-code
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v5
3232
with:
3333
fetch-depth: 0
3434

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
# checkout the code
1414
- name: checkout-code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616
with:
1717
fetch-depth: 0
1818
# setup dotnet based on global.json
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
# checkout the code
3333
- name: checkout-code
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
with:
3636
fetch-depth: 0
3737
# setup dotnet based on global.json
@@ -44,7 +44,7 @@ jobs:
4444
shell: cmd
4545
run: ./build.cmd ci -release
4646
- name: Publish test results - release
47-
uses: dorny/test-reporter@v1
47+
uses: dorny/test-reporter@v2
4848
if: always()
4949
with:
5050
name: Report release tests

.github/workflows/publish.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
#contents: write # for peaceiris/actions-gh-pages
10+
id-token: write # for NuGet trusted publishing
11+
812
jobs:
913
publish:
1014
name: Publish nuget (if new version)
1115
runs-on: windows-latest
1216
steps:
1317
# checkout the code
1418
- name: checkout-code
15-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
1620
with:
1721
fetch-depth: 0
1822
# setup dotnet based on global.json
@@ -24,13 +28,11 @@ jobs:
2428
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
2529
shell: cmd
2630
run: ./build.cmd
27-
- name: Nuget publish
28-
# skip-duplicate ensures that the 409 error received when the package was already published,
29-
# will just issue a warning and won't have the GH action fail.
30-
# NUGET_PUBLISH_TOKEN_TASKSEQ is valid until approx. 11 Dec 2024 and will need to be updated by then:
31-
# - log in to Nuget.org using 'abelbraaksma' admin account and then refresh the token in Nuget
32-
# - copy the token
33-
# - go to https://github.com/fsprojects/FSharp.Control.TaskSeq/settings/secrets/actions
34-
# - select button "Add repository secret" or update the existing one under "Repository secrets"
35-
# - rerun the job
36-
run: dotnet nuget push packages\FSharp.Control.TaskSeq.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_TOKEN_TASKSEQ }} --skip-duplicate
31+
- name: Obtain NuGet key
32+
# this hash is v1.1.0
33+
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544
34+
id: login
35+
with:
36+
user: dsyme
37+
- name: Publish NuGets (if this version not published before)
38+
run: dotnet nuget push packages\FSharp.Control.TaskSeq.*.nupkg -s https://www.nuget.org/api/v2/package -k ${{ steps.login.outputs.NUGET_API_KEY }} --skip-duplicate

0 commit comments

Comments
 (0)