Skip to content

Update build.yml

Update build.yml #19

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 (and release)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [published,edited]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17.0.7
distribution: microsoft
- name: Get the sources
uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Run Cake script
uses: cake-build/cake-action@v1
with:
verbosity: Diagnostic
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN_SQLITEPERSISTENCE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}