Skip to content

Commit

Permalink
Rename pipelines
Browse files Browse the repository at this point in the history
Use manual zip and release
  • Loading branch information
Meister1593 committed Jan 3, 2024
1 parent b09ba41 commit 9b3eddb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-debug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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
name: ADBForwarder Debug

on:
push:
Expand Down
26 changes: 11 additions & 15 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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
name: ADBForwarder Release

on:
push:
Expand All @@ -11,8 +11,6 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
Expand All @@ -24,17 +22,15 @@ jobs:
run: dotnet publish -r linux-x64 -c Release
- name: Publish for windows
run: dotnet publish -r win-x64 -c Release
- name: Upload Linux Artifact
uses: actions/upload-artifact@v4.0.0
with:
name: ADBForwarder-linux-x64.zip
path: ADBForwarder/bin/Release/net8.0/linux-x64/publish
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4.0.0
with:
name: ADBForwarder-windows-x64.zip
path: ADBForwarder/bin/Release/net8.0/win-x64/publish
- uses: ncipollo/release-action@v1
- name: Pack linux build
run: zip -r ADBForwarder-windows-x64.zip ADBForwarder/bin/Release/net8.0/linux-x64/
- name: Pack windows build
run: zip -r ADBForwarder-windows-x64.zip ADBForwarder/bin/Release/net8.0/win-x64/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
artifacts: "ADBForwarder-linux-x64.zip,ADBForwarder-windows-x64.zip"
files: |
ADBForwarder-linux-x64.zip
ADBForwarder-windows-x64.zip

0 comments on commit 9b3eddb

Please sign in to comment.