Skip to content

Fix error on build.yml and add possibility to run manually #4

Fix error on build.yml and add possibility to run manually

Fix error on build.yml and add possibility to run manually #4

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: ./global.json
- name: Restore dependencies
run: dotnet restore ./src/ValMati.StockBot/ValMati.StockBot.csproj --runtime linux-x64
- name: Build
run: dotnet publish -c Release --no-restore --runtime linux-x64 /p:DebugType=None /p:Platform=x64
# - name: Test
# run: dotnet test --no-build --verbosity normal