-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pejman Nikram
committed
Jan 4, 2024
1 parent
a4dd4b0
commit 85ba654
Showing
4 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
strategy: | ||
matrix: | ||
rid: [win-x64, linux-x64, linux-arm, osx-x64, osx-arm64] | ||
name: Build for ${{ matrix.rid }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "8.x" | ||
|
||
- name: publish app for ${{ matrix.rid }} | ||
run: dotnet publish src/Lazvard.Message.Cli -r ${{ matrix.rid }} -c Release -o ./publish /p:DebugType=None /p:DebugSymbols=false | ||
|
||
- name: Archive release for ${{ matrix.rid }} | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
directory: "./publish/" | ||
filename: "${{ matrix.rid }}.zip" | ||
path: "." | ||
|
||
- name: Push ${{ matrix.rid }}.zip to release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "./publish/${{ matrix.rid }}.zip" | ||
allowUpdates: true | ||
draft: true | ||
|
||
nuget: | ||
runs-on: ubuntu-latest | ||
name: Nuget Push | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "8.x" | ||
- name: build app | ||
run: dotnet build src/Lazvard.Message.Amqp.Server -c Release -o ./publish/ | ||
- name: Nuget Push | ||
run: dotnet nuget push ./publish/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters