Skip to content

Commit

Permalink
Changed release pipelines to upload artifacts and release later to draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Meister1593 committed Jan 3, 2024
1 parent eb817f2 commit 2dd13bb
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
build:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
- name: Setup .NET
Expand All @@ -22,21 +24,17 @@ jobs:
run: dotnet publish -r linux-x64 -c Release
- name: Publish for windows
run: dotnet publish -r win-x64 -c Release
- name: Upload linux binaries to release
uses: svenstaro/upload-release-action@v2
- name: Upload Linux Artifact
uses: actions/[email protected]
with:
name: ADBForwarder-linux-x64.zip
path: ADBForwarder/bin/Debug/net8.0/linux-x64/publish
- name: Upload Windows Artifact
uses: actions/[email protected]
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
name: ADBForwarder-windows-x64.zip
path: ADBForwarder/bin/Debug/net8.0/win-x64/publish
- uses: ncipollo/release-action@v1
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: ""
draft: true
artifacts: "ADBForwarder-linux-x64.zip,ADBForwarder-windows-x64.zip"

0 comments on commit 2dd13bb

Please sign in to comment.