Skip to content

Commit 9bf9975

Browse files
committed
release with github not appveyor
1 parent 6a738a1 commit 9bf9975

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,20 @@ jobs:
2929
assemblyVersion: ${{ github.event.release.tag_name }}
3030
fileVersion: ${{ github.event.release.tag_name }}
3131
informationalVersion: ${{ github.event.release.tag_name }}-${{ github.sha }}
32-
32+
3333
- name: Build
3434
run: |
3535
dotnet build -c Release Migrator.slnx
36+
37+
- name: Upload to release
38+
uses: AButler/[email protected]
39+
with:
40+
files: 'src/Migrator/bin/Release/net9.0/DotNetProjects.Migrator.${{ github.event.release.tag_name }}.nupkg'
41+
repo-token: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Publish to nuget
44+
run: |
45+
find . -type f -name *.nupkg -print0 | xargs -0 -I pkg dotnet nuget push pkg -k $nuget_api_key -s "https://api.nuget.org/v3/index.json" --skip-duplicate
46+
env:
47+
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
48+
working-directory: ./src/Migrator/bin/Release/net9.0/

0 commit comments

Comments
 (0)