Skip to content

Commit

Permalink
Merge pull request #55 from flcdrg/back-to-v3
Browse files Browse the repository at this point in the history
Switch back to a v3 release
  • Loading branch information
flcdrg authored Apr 25, 2024
2 parents e22ddce + 704f065 commit a23202c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
Release_upload_url: ${{ steps.create_release.outputs.upload_url}}

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -39,7 +43,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: ${{ env.NBGV_SemVer2 }}
prerelease: true

build:
needs: [update_release_draft]
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ on:

jobs:
publish:
runs-on: windows-latest
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Download Assets
uses: i3h/[email protected]
with:
Expand All @@ -24,8 +29,10 @@ jobs:
file: '/.*\.nupkg/'
token: ${{ secrets.GITHUB_TOKEN }}

- run: dir -recurse
- run: ls -alR
name: List files

- name: push
run: nuget push *.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}

- name: Publish the package to nuget.org
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN --skip-duplicate
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "4.0",
"version": "3.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit a23202c

Please sign in to comment.