Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlamin committed Aug 15, 2024
1 parent 6208798 commit 6514266
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: .NET

on:
push:
tags:
- '*'

jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v0.1.13
with:
name: ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: false
build:
name: Build Release
needs: create_release
strategy:
matrix:
kind: ['windows']
include:
- kind: windows
os: windows-latest
target: win-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish --configuration Release
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
directory: ${{ github.workspace }}/build/Release/net8.0/publish
type: 'zip'
filename: ${{ github.workspace }}/Release-${{ matrix.target }}.zip
- name: Release
uses: softprops/action-gh-release@v0.1.13
with:
files: ${{ github.workspace }}/Release-${{ matrix.target }}.zip

0 comments on commit 6514266

Please sign in to comment.