Skip to content

Commit b6aaaa8

Browse files
committed
Update actions for release
1 parent 761fc91 commit b6aaaa8

File tree

5 files changed

+36
-18
lines changed

5 files changed

+36
-18
lines changed

.config/dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"dotnet-verify"
1616
],
1717
"rollForward": false
18+
},
19+
"nbgv": {
20+
"version": "3.6.139",
21+
"commands": [
22+
"nbgv"
23+
],
24+
"rollForward": false
1825
}
1926
}
2027
}

.github/workflows/main.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,10 @@ jobs:
8080
path: ./artifacts/logs
8181
if-no-files-found: error
8282

83-
# TODO: Add this back once a package is generated
84-
# - name: Upload packages
85-
# uses: actions/upload-artifact@v4
86-
# with:
87-
# name: packages-${{ matrix.os }}
88-
# path: |
89-
# ./artifacts/package
90-
# if-no-files-found: error
83+
- name: Upload packages
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: packages-${{ matrix.os }}
87+
path: |
88+
./artifacts/package
89+
if-no-files-found: error

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
path: packages
2626
pattern: packages-windows-*
2727
merge-multiple: true
28-
# TODO: Add this back when publishing packages
29-
# - name: Publish NuGet package
30-
# shell: pwsh
31-
# run: |
32-
# foreach ($file in (Get-ChildItem ./packages/release -Recurse -Include *.nupkg)) {
33-
# echo "NuGet publish for file: '$file'"
34-
# dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
35-
# }
28+
29+
- name: Publish NuGet package
30+
shell: pwsh
31+
run: |
32+
foreach ($file in (Get-ChildItem ./packages/release -Recurse -Include *.nupkg)) {
33+
echo "NuGet publish for file: '$file'"
34+
dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
35+
}

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Contributing
2+
3+
// TODO
4+
5+
## How to release
6+
7+
1. `git checkout main && git pull --ff-only`
8+
2. `dotnet nbgv tag`
9+
3. `git push origin {tag name}`
10+
4. Navigate to GitHub releases page and create release from tag
11+
5. (If desired) increment version (major or minor) in `//version.json > version`
12+
6. `git add . && git commit -m 'Bumping version' && git push`

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "0.1.0",
3+
"version": "1.0",
44
"publicReleaseRefSpec": [
55
"^refs/heads/main$",
6-
"^refs/heads/v\\d+(?:\\.\\d+)?$"
6+
"^refs/tags/v\\d+\\.\\d+\\.\\d+$"
77
],
88
"cloudBuild": {
99
"buildNumber": {

0 commit comments

Comments
 (0)