Skip to content

- added _serialLeds #62

- added _serialLeds

- added _serialLeds #62

Workflow file for this run

name: Dotnet - Nuget
on:
# pull_request:
# branches: [ main ]
push:
branches: [ master]
jobs:
release:
name: Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- kind: linux
os: ubuntu-latest
target: x64
- kind: linux
os: ubuntu-latest
target: x86
steps:
- uses: actions/checkout@v1
name: Checkout Code
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Restore NuGet Packages
run: nuget restore NetProcGame.sln
- name: Build
shell: bash
run: |
tag=$(git describe --tags --abbrev=0)
release_name="NetProc-${{ matrix.target }}-$tag-nuget"
# tests to get the paths this workflow is using
echo $GITHUB_WORKSPACE
echo $GITHUB_PATH
# Build the NetProc.Game. This uses all the other main packages so they will be built here
dotnet build NetProc.Game/NetProc.Game.csproj -p:Platform="${{ matrix.target }}" -c=Release -o "${release_name}" --no-self-contained
# Build the Sqlite data project
dotnet build NetProc.Data/NetProc.Data.csproj -p:Platform="${{ matrix.target }}" -c=Release -o "${release_name}" --no-self-contained
# Build ports plugins
dotnet build NetProc.Ports/NetProc.Ports.WSLED/NetProc.Ports.WSLED.csproj -p:Platform="${{ matrix.target }}" -c=Release -o "${release_name}" --no-self-contained
# Zip or Tar the nuget packages
7z a -tzip "${release_name}.zip" "$GITHUB_WORKSPACE/.nupkg/*"
tar czvf "${release_name}.tar.gz" "$GITHUB_WORKSPACE/.nupkg"
- name: Publish
uses: softprops/action-gh-release@v1
with:
tag_name: "1.0.41"
files: "NetProc-*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}