Update .NET versions, improve implementation performance #18
Workflow file for this run
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 Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
- name: Build Projects | |
run: dotnet build | |
- name: Publish Windows CLI tool | |
run: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true --self-contained true -o build ./src/Bottom.CLI | |
- name: Publish Linux CLI tool | |
run: dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true -o build ./src/Bottom.CLI | |
- name: Create release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: TODO | |
draft: false | |
prerelease: false | |
- name: Upload Windows Build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: build/Bottom.CLI.exe | |
asset_name: bottom_win-x64.exe | |
asset_content_type: application/octet-stream | |
- name: Upload Linux Build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: build/Bottom.CLI | |
asset_name: bottom_linux-x64 | |
asset_content_type: application/octet-stream | |
- name: Publish NuGet Package | |
uses: brandedoutcast/publish-nuget@v2.5.5 | |
with: | |
PROJECT_FILE_PATH: ./src/Bottom/Bottom.csproj | |
TAG_COMMIT: false | |
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} | |