Skip to content

Commit a23202c

Browse files
authored
Merge pull request #55 from flcdrg/back-to-v3
Switch back to a v3 release
2 parents e22ddce + 704f065 commit a23202c

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
Release_upload_url: ${{ steps.create_release.outputs.upload_url}}
2020

2121
steps:
22+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
23+
with:
24+
config: ${{ vars.PERMISSIONS_CONFIG }}
25+
2226
- name: Checkout
2327
uses: actions/checkout@v4
2428
with:
@@ -39,7 +43,6 @@ jobs:
3943
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4044
with:
4145
version: ${{ env.NBGV_SemVer2 }}
42-
prerelease: true
4346

4447
build:
4548
needs: [update_release_draft]

.github/workflows/publish.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ on:
77

88
jobs:
99
publish:
10-
runs-on: windows-latest
11-
permissions: write-all
10+
runs-on: ubuntu-latest
1211

1312
steps:
1413
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1514
with:
1615
config: ${{ vars.PERMISSIONS_CONFIG }}
1716

17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: |
21+
8.0.x
22+
1823
- name: Download Assets
1924
uses: i3h/download-release-asset@v1.3.3
2025
with:
@@ -24,8 +29,10 @@ jobs:
2429
file: '/.*\.nupkg/'
2530
token: ${{ secrets.GITHUB_TOKEN }}
2631

27-
- run: dir -recurse
32+
- run: ls -alR
33+
name: List files
2834

29-
- name: push
30-
run: nuget push *.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
31-
35+
- name: Publish the package to nuget.org
36+
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN --skip-duplicate
37+
env:
38+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "4.0",
3+
"version": "3.0",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
66
"^refs/heads/v\\d+(?:\\.\\d+)?$"

0 commit comments

Comments
 (0)