Skip to content

Update .NET versions, improve implementation performance #18

Update .NET versions, improve implementation performance

Update .NET versions, improve implementation performance #18

Workflow file for this run

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 }}