Publish nuget packages #25
Workflow file for this run
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 nuget packages | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup fasm | |
uses: stevenwdv/[email protected] | |
- name: BuildFasm_x64 | |
run: fasm JustCRC32C.Native/JustCRC32C_Native_x64.ASM JustCRC32C/JustCRC32C_Native_x64.dll | |
- name: BuildFasm_x86 | |
run: fasm JustCRC32C.Native/JustCRC32C_Native_x86.ASM JustCRC32C/JustCRC32C_Native_x86.dll | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x.x | |
- name: Build dotnet | |
run: dotnet build JustCRC32C/JustCRC32C.csproj -c Release | |
- name: Pack dotnet | |
run: dotnet pack JustCRC32C/JustCRC32C.csproj -c Release | |
- name: Prep packages | |
run: dotnet nuget add source --username bartimaeusnek --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/bartimaeusnek/index.json" | |
- name: Publish to GitHub packages | |
run: dotnet nuget push JustCRC32C\bin\Release\*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" | |
- name: Publish to nuget | |
run: dotnet nuget push JustCRC32C\bin\Release\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source 'https://api.nuget.org/v3/index.json' |