Skip to content

Commit

Permalink
Changed pipelines to be for release and for debug separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Meister1593 committed Jan 3, 2024
1 parent 30153ce commit a1199c2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types:
- created

jobs:
build:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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:
tags:
- '*'
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 -c Release
- name: Publish for windows
run: dotnet build -r win-x64 -c Release
- name: Upload linux binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ADBForwarder/bin/Release/net8.0/linux-x64/publish
asset_name: ADBForwarder-linux-x64.zip
tag: ${{ github.ref }}
overwrite: true
body: ""
- name: Upload windows binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ADBForwarder/bin/Release/net8.0/win-x64/publish
asset_name: ADBForwarder-linux-x64.zip
tag: ${{ github.ref }}
overwrite: true
body: ""

0 comments on commit a1199c2

Please sign in to comment.