Don't specify output otherwise it tries to build #30
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: Build and publish to release | |
on: | |
push: | |
branches: | |
- main # Used for stable releases | |
- develop # Used for preview releases | |
tags: | |
- '*' | |
jobs: | |
publish: | |
name: Build check for all branches | |
runs-on: macos-15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup .NET 9.0 | |
uses: actions/setup-dotnet@v4.1.0 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
8.0.x | |
9.0.x | |
- name: Build, Tests, Cover, Pack and Publish (on push tag) | |
shell: bash | |
run: | | |
dotnet workload restore | |
dotnet tool install --global dotnet-releaser | |
dotnet-releaser run --github-token "${{secrets.GITHUB_TOKEN}}" ${{ github.workspace }}/dotnet-releaser.toml | |