Skip to content

.NET Publish Beta

.NET Publish Beta #12

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Publish Beta
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
permissions: write-all
# packages: write
# contents: read
steps:
- uses: actions/checkout@v6
with:
# lfs: true
fetch-depth: 0
ref: 'V3-XLSB'
# - name: Checkout LFS objects
# run: git lfs checkout
- name: Setup NuGet
uses: NuGet/setup-nuget@v2.0.1
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.x
9.x
10.x
# Authenticates packages to push to GPR
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Restore dependencies
run: dotnet restore
env:
NUGET_AUTH_TOKEN: ${{ github.token }}
- name: Build
run: dotnet build --configuration Release --no-restore
# - name: Test
# run: dotnet test --no-build --configuration Release --verbosity normal
- name: Pack
run: dotnet pack --no-build --configuration Release --version-suffix XLSB-RC1
- name: PushGithub
run: dotnet nuget push **/*.nupkg --no-symbols --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: PushNuget
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.Excel_PRIME_Publish }} --skip-duplicate