Skip to content

Commit 406a3af

Browse files
authored
Merge pull request #17 from null-d3v/fix-publish
fix: publish
2 parents 61ce45b + a90e963 commit 406a3af

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Version
14-
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
1513
- name: Test
1614
uses: devcontainers/ci@v0.3
1715
with:
1816
push: never
1917
runCmd: dotnet test
20-
- name: Publish
21-
uses: devcontainers/ci@v0.3
18+
- name: Version
19+
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
20+
- name: Setup
21+
uses: actions/setup-dotnet@v4
2222
with:
23-
push: never
24-
runCmd: dotnet build -c Release && dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate
23+
dotnet-version: 9
24+
- name: Build
25+
run: dotnet build -c Release
26+
- name: Publish
27+
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)