This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Update workflow #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- master | |
- xbim_v6_dev | |
paths: | |
- RELEASE_NOTES.md | |
- .github/workflows/publish.yml | |
jobs: | |
pack: | |
name: Package | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- name: Restore Tools | |
run: dotnet tool restore | |
- name: Add Paket credentials | |
run: dotnet paket config add-token https://nuget.pkg.github.com/aardvark-platform/index.json ${{ secrets.GITHUB_TOKEN }} | |
- name: Restore | |
run: dotnet paket restore | |
- name: Build | |
run: dotnet build src\Aardvark.Data.Ifc.sln | |
- name: Test | |
run: dotnet test src\Aardvark.Data.Ifc.sln | |
- name: Pack | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: dotnet aardpack src\Aardvark.Data.Ifc.sln --notag | |
- name: Upload Packages | |
uses: actions/upload-artifact@v3 | |
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 |