Build SharpBoot #37
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 SharpBoot | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build and prepare for release | |
id: date | |
run: dotnet build --no-restore && echo "::set-output name=today::$(date +"%d-%m-%y")" | |
- name: Upload to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
/home/runner/work/SharpBoot/SharpBoot/SharpBoot/bin/Debug/net6.0/SharpBoot.dll | |
name: SharpBoot Release | |
tag_name: ${{ steps.date.outputs.today }} |