Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Build
run: |
dotnet publish -r win-x64 --self-contained -p:PublishTrimmed=True
cd bin\Release\net8.0\win-x64\publish
rm NewRGB.dbg
tar -cavf "NewRGB.zip" *
- name: Upload
uses: actions/upload-artifact@v3
with:
name: NewRGB.zip
path: bin\Release\net8.0\win-x64\publish\NewRGB.zip
- name: Publish in release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
files: |
bin/Release/net8.0/win-x64/publish/NewRGB.zip
token: ${{ secrets.GITHUB_TOKEN }}
build-linux:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Build
run: |
dotnet publish -r linux-x64 --self-contained -p:PublishTrimmed=True
cd bin/Release/net8.0/linux-x64/publish
rm NewRGB.dbg
tar -cvf "NewRGB.tar.gz" *
- name: Upload
uses: actions/upload-artifact@v3
with:
name: NewRGB.zip
path: bin/Release/net8.0/linux-x64/publish/NewRGB.zip
- name: Publish in release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
files: |
bin/Release/net8.0/linux-x64/publish/NewRGB.zip
token: ${{ secrets.GITHUB_TOKEN }}