- added _serialLeds #62
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
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 }} |