Skip to content

remove fantomas due to .NET CLI bug in .NET 9 GA release #70

remove fantomas due to .NET CLI bug in .NET 9 GA release

remove fantomas due to .NET CLI bug in .NET 9 GA release #70

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
# since we're packaging for net7 now...
- name: remove global.json
run: rm global.json
- name: Restore tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore
- name: Run build
run: dotnet run --project build
env:
BuildNet9: true
IgnoreTests: true
- name: Get version from tag
id: tag_name
run: |
echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
shell: bash
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_level: warn
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.changelog_reader.outputs.changes }}
draft: false
prerelease: false
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/**/*.nupkg
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Publish to NuGet
run: dotnet run --project build -- -t Push
env:
nuget-key: ${{ secrets.PROJ_INFO_NUGET_TOKEN }}