Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekctek authored May 18, 2022
1 parent feccfdb commit 9750eeb
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish Release

on:
release:
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Publish Candid
id: publish_nuget_candid
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: src\Candid\Candid.csproj
BUILD_CONFIGURATION: Release
VERSION_STATIC: ${{ github.event.release.tag_name }}
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUGET_SOURCE: https://api.nuget.org
INCLUDE_SYMBOLS: true

- name: Publish Agent
id: publish_nuget_agent
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: src\Agent\Agent.csproj
BUILD_CONFIGURATION: Release
VERSION_STATIC: ${{ github.event.release.tag_name }}
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUGET_SOURCE: https://api.nuget.org
INCLUDE_SYMBOLS: true

- name: Publish Client Generator
id: publish_nuget_client_generator
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: src\ClientGenerator\ClientGenerator.csproj
BUILD_CONFIGURATION: Release
VERSION_STATIC: ${{ github.event.release.tag_name }}
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUGET_SOURCE: https://api.nuget.org
INCLUDE_SYMBOLS: true

0 comments on commit 9750eeb

Please sign in to comment.