Skip to content

Update dependency Microsoft.SourceLink.GitHub to v8 #160

Update dependency Microsoft.SourceLink.GitHub to v8

Update dependency Microsoft.SourceLink.GitHub to v8 #160

Workflow file for this run

name: "Build and Pack"
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: 6.0.x
- name: Restore Windows
run: dotnet restore --runtime=win10-x64
- name: Build Windows
run: dotnet build IdlImpTool --no-restore --runtime=win10-x64
- name: Restore Linux
run: dotnet restore --runtime=linux-x64
- name: Build Linux
run: dotnet build IdlImpTool --no-restore --runtime=linux-x64
- name: Pack IdlImporter (also builds any runtime)
run: dotnet pack IDLImporter --include-symbols --no-restore -o .
- name: Pack IdlImpTool Everything (also builds any runtime)
run: dotnet pack IdlImpTool --include-symbols --no-restore -o .
- name: Publish Artifacts
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: NugetPackages
path: |
./*.nupkg
./*.snupkg
publish-nuget:
name: "Publish NuGet package"
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push'
steps:
- name: Download Artifacts
uses: actions/download-artifact@7a1cd3216ca9260cd8022db641d960b1db4d1be4 # v4.0.0
with:
path: artifacts
- name: Publish to Nuget
run: dotnet nuget push artifacts/**/*.*nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.SILLSDEV_PUBLISH_NUGET_ORG}} --skip-duplicate