Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Add publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jun 1, 2022
1 parent ae07dfd commit 1b4f576
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish
on:
push:
branches:
- master
paths:
- RELEASE_NOTES.md
- .github/workflows/publish.yml
jobs:
pack:
name: Package
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'
- name: Restore Tools
run: dotnet tool restore
- name: Restore
run: dotnet paket restore
- name: Pack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet aardpack src\Aardvark.PixImage.FreeImage.sln --notag
- name: Upload Packages
uses: actions/upload-artifact@v2
with:
name: packages
path: bin\pack
- name: GitHub Packages
env:
NUGET_KEY: ${{ secrets.GITHUB_TOKEN }}
shell: cmd
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://nuget.pkg.github.com/aardvark-platform/index.json" --skip-duplicate
- name: NuGet
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: cmd
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate

0 comments on commit 1b4f576

Please sign in to comment.