Skip to content

docs: remove TOC

docs: remove TOC #16

Workflow file for this run

name: build
on:
push:
branches: [main]
paths-ignore:
- "**.md"
pull_request:
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.image }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: Windows
runtime: win-x64
image: windows-2019
- name: Linux (ARM)
runtime: linux-arm
image: ubuntu-latest
tarball: true
- name: Linux
runtime: linux-x64
image: ubuntu-latest
tarball: true
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Clean
run: dotnet clean ./AllMyLights.sln --configuration Release && dotnet nuget locals all --clear
- name: Install dependencies
run: dotnet restore
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish AllMyLights/AllMyLights.csproj --runtime ${{ matrix.runtime }} --configuration Release -p:PublishSingleFile=true -p:UseAppHost=true --self-contained false
- name: Copy allmylightsrc.json
run: cp AllMyLights/allmylightsrc.json ./AllMyLights/bin/Release/net7.0/${{ matrix.runtime }}/publish/allmylightsrc.json
- name: Zip
if: ${{ !matrix.tarball }}
shell: bash
run: |
archive_name=${{ matrix.runtime }}.zip
7z a -tzip "$archive_name" ./AllMyLights/bin/Release/net7.0/${{ matrix.runtime }}/publish/*
echo "ARCHIVE_NAME=$archive_name" >> $GITHUB_ENV
- name: Tar
if: ${{ matrix.tarball }}
run: |
archive_name=${{ matrix.runtime }}.tar.gz
tar -czf "$archive_name" ./AllMyLights/bin/Release/net7.0/${{ matrix.runtime }}/publish/*
echo "ARCHIVE_NAME=$archive_name" >> $GITHUB_ENV
- name: Upload ${{ matrix.name }} artifact
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
with:
name: ${{ matrix.runtime }}
path: ${{ env.ARCHIVE_NAME }}