Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Meister1593 authored Jan 3, 2024
1 parent db63a9c commit 1dbbffa
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Publish for linux
run: dotnet publish -r linux-x64 --no-restore
- name: Publish for windows
run: dotnet publish -r win-x64 --no-restore
- name: Upload Linux Artifact
uses: actions/[email protected]
with:
# Artifact name
name: ADBForwarder-linux-x64.zip
# A file, directory or wildcard pattern that describes what to upload
path: bin/Release/net8.0/linux-x64/publish
- name: Upload Windows Artifact
uses: actions/[email protected]
with:
# Artifact name
name: ADBForwarder-win-x64.zip
# A file, directory or wildcard pattern that describes what to upload
path: bin/Release/net8.0/win-x64/publish

0 comments on commit 1dbbffa

Please sign in to comment.