Skip to content

Commit

Permalink
Attempt CI
Browse files Browse the repository at this point in the history
  • Loading branch information
imerr committed Jun 19, 2024
1 parent b9726c7 commit 7b92102
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build on release

on:
push:
tags:
- 'v*.*.*' # Triggers the workflow on version tags like v1.0.0

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x' # .NET 6.x SDK supports .NET Standard 2.0

- name: Restore dependencies
run: dotnet restore

- name: Build project
run: dotnet build --configuration Release --framework netstandard2.0

- name: Publish DLL
run: dotnet publish -c Release -f netstandard2.0 -o ./publish

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: my-csharp-project-dll
path: ./publish

0 comments on commit 7b92102

Please sign in to comment.