Add picture support in payload preview #270
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
VERSION: "1.8.1.${{github.run_number}}" | |
jobs: | |
build: | |
# windows-latest is required due to some resource stuff. | |
runs-on: windows-latest | |
steps: | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: dotnet restore Source\mqttMultimeter.sln | |
# Build applications | |
- name: Build win-x86 | |
run: dotnet publish Source\mqttMultimeter.csproj -r win-x86 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip win-x86 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\win-x86\publish\ | |
dest: mqttMultimeter-windows-x86.zip | |
- name: Collect win-x86 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-windows-x86 | |
path: ${{ github.workspace }}\mqttMultimeter-windows-x86.zip | |
- name: Build win-x64 | |
run: dotnet publish Source\mqttMultimeter.csproj -r win-x64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip win-x64 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\win-x64\publish\ | |
dest: mqttMultimeter-windows-x64.zip | |
- name: Collect win-x64 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-windows-x64 | |
path: ${{ github.workspace }}\mqttMultimeter-windows-x64.zip | |
- name: Build win-arm64 | |
run: dotnet publish Source\mqttMultimeter.csproj -r win-arm64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip win-arm64 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\win-arm64\publish\ | |
dest: mqttMultimeter-windows-arm64.zip | |
- name: Collect win-arm64 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-windows-arm64 | |
path: ${{ github.workspace }}\mqttMultimeter-windows-arm64.zip | |
- name: Build osx-x64 | |
run: dotnet publish Source\mqttMultimeter.csproj -r osx-x64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip osx-x64 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\osx-x64\publish\ | |
dest: mqttMultimeter-macOS-x64.zip | |
- name: Collect osx-x64 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-macOS-x64 | |
path: ${{ github.workspace }}\mqttMultimeter-macOS-x64.zip | |
- name: Build osx-arm64 | |
run: dotnet publish Source\mqttMultimeter.csproj -r osx-arm64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip osx-arm64 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\osx-arm64\publish\ | |
dest: mqttMultimeter-macOS-arm64.zip | |
- name: Collect osx-arm64 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-macOS-arm64 | |
path: ${{ github.workspace }}\mqttMultimeter-macOS-arm64.zip | |
- name: Build linux-x64 | |
run: dotnet publish Source\mqttMultimeter.csproj -r linux-x64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip linux-x64 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\linux-x64\publish\ | |
dest: mqttMultimeter-linux-x64.zip | |
- name: Collect linux-x64 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-linux-x64 | |
path: ${{ github.workspace }}\mqttMultimeter-linux-x64.zip | |
- name: Build linux-arm | |
run: dotnet publish Source\mqttMultimeter.csproj -r linux-arm -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip linux-arm build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\linux-arm\publish\ | |
dest: mqttMultimeter-linux-arm.zip | |
- name: Collect linux-arm artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-linux-arm | |
path: ${{ github.workspace }}\mqttMultimeter-linux-arm.zip | |
- name: Build linux-arm64 | |
run: dotnet publish Source\mqttMultimeter.csproj -r linux-arm64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -p:Version=${{ env.VERSION }} -p:AssemblyVersion=${{ env.VERSION }} | |
- name: Zip linux-arm64 build | |
uses: vimtor/action-zip@v1 | |
with: | |
files: Source\bin\Release\linux-arm64\publish\ | |
dest: mqttMultimeter-linux-arm64.zip | |
- name: Collect linux-arm artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqttMultimeter-linux-arm64 | |
path: ${{ github.workspace }}\mqttMultimeter-linux-arm64.zip | |
# Release Management | |
- name: Delete release drafts | |
uses: hugo19941994/delete-draft-releases@v1.0.1 | |
with: | |
threshold: 1s | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
#if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
tag_name: v${{ env.VERSION }} | |
generate_release_notes: true | |
files: | | |
./mqttMultimeter-windows-arm.zip | |
./mqttMultimeter-windows-arm64.zip | |
./mqttMultimeter-windows-x86.zip | |
./mqttMultimeter-windows-x64.zip | |
./mqttMultimeter-linux-arm.zip | |
./mqttMultimeter-linux-arm64.zip | |
./mqttMultimeter-linux-x64.zip | |
./mqttMultimeter-macOS-arm64.zip | |
./mqttMultimeter-macOS-x64.zip |