2024-01-22 01:33:05 +00:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- runtime: 'linux-x64'
|
|
|
|
os: 'ubuntu-latest'
|
|
|
|
- runtime: 'win-x64'
|
|
|
|
os: 'windows-latest'
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Git checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup dotnet
|
|
|
|
uses: actions/setup-dotnet@v3
|
|
|
|
with:
|
|
|
|
dotnet-version: '8.0.x'
|
|
|
|
|
2024-07-27 07:06:19 +00:00
|
|
|
- name: Add samboy's nuget source
|
|
|
|
run: dotnet nuget add source https://nuget.samboy.dev/v3/index.json
|
|
|
|
|
2024-01-22 01:33:05 +00:00
|
|
|
- name: Build protodec
|
2024-07-11 04:39:04 +00:00
|
|
|
run: dotnet publish --configuration Release --runtime ${{ matrix.runtime }} /p:Version=${{ github.ref_name }} /p:ContinuousIntegrationBuild=true
|
2024-01-22 01:33:05 +00:00
|
|
|
|
|
|
|
- name: Pack LibProtodec
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
2024-07-11 04:39:04 +00:00
|
|
|
run: dotnet pack --configuration Release /p:Version=${{ github.ref_name }} /p:ContinuousIntegrationBuild=true
|
2024-01-22 01:33:05 +00:00
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
bin/protodec/Release/net8.0/${{ matrix.runtime }}/publish/protodec*
|
|
|
|
bin/LibProtodec/Release/*nupkg
|