Skip to content

Commit

Permalink
Reformat pipelines and make build on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Meister1593 committed Jan 3, 2024
1 parent 2ff4ef0 commit e832d50
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,32 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types:
- created

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: Publish for linux
run: dotnet publish -r linux-x64
- name: Publish for windows
run: dotnet publish -r win-x64
- name: Upload Linux Artifact
uses: actions/[email protected]
with:
name: ADBForwarder-linux-x64.zip
path: ADBForwarder/bin/Release/net8.0/linux-x64/publish/*
- name: Upload Windows Artifact
uses: actions/[email protected]
with:
name: ADBForwarder-windows-x64.zip
path: ADBForwarder/bin/Release/net8.0/win-x64/publish/*

- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Publish for linux
run: dotnet publish -r linux-x64
- name: Publish for windows
run: dotnet publish -r win-x64
- name: Upload Linux Artifact
uses: actions/[email protected]
with:
name: ADBForwarder-linux-x64.zip
path: ADBForwarder/bin/Release/net8.0/linux-x64/publish/*
- name: Upload Windows Artifact
uses: actions/[email protected]
with:
name: ADBForwarder-windows-x64.zip
path: ADBForwarder/bin/Release/net8.0/win-x64/publish/*

0 comments on commit e832d50

Please sign in to comment.