Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Flash-1337 authored Nov 23, 2023
1 parent f9d2a41 commit e6bd0f0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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: .NET release

on:
push:
branches: [ "master" ]

jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Init submodule
run: git submodule init
- name: Add submodule
run: git submodule update --recursive --remote --force
- name: Publish
run: dotnet publish AutoUpdater.csproj -o build\ -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true -p:SelfContained=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
tag_name: generated_release_${{ github.run_id }}-${{ github.run_attempt }}
name: Generated release
body: This release was generated by Github Actions. It may or may not be stable.
files: build/AutoUpdater.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: dotnet test --no-build --verbosity normal

0 comments on commit e6bd0f0

Please sign in to comment.