Skip to content

bug(ci): fix NuGet publish and restore sources #14

bug(ci): fix NuGet publish and restore sources

bug(ci): fix NuGet publish and restore sources #14

Workflow file for this run

name: Publish to GitHub
on:
push:
branches:
- main
env:
CONFIGURATION: Release
jobs:
build:
# Sets permissions of the GITHUB_TOKEN to allow release creating
permissions:
packages: write
environment:
name: nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup necessary dotnet SDKs
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
dotnet-version: |
8.x
- name: Publish to GitHub
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FAKE_DETAILED_ERRORS: true
ENABLE_COVERAGE: false # AltCover doesn't work with Release builds, reports lower coverage than actual
run: |
chmod +x ./build.sh
./build.sh "PublishToGitHub"