Skip to content

v1.1.5

v1.1.5 #41

Workflow file for this run

name: Release-Unpackaged
on:
push:
tags:
- 'v*'
jobs:
build:
permissions:
contents: read
runs-on: windows-latest
strategy:
matrix:
runtime: [win-x86, win-x64, win-arm64]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'RemoteLogViewer.WinUI/Assets/Web/package-lock.json'
- name: Install npm dependencies
run: npm ci
working-directory: RemoteLogViewer.WinUI/Assets/Web
- name: Build Web Assets (Production)
run: npm run build
working-directory: RemoteLogViewer.WinUI/Assets/Web
- name: Restore dependencies
run: dotnet restore RemoteLogViewer.WinUI/RemoteLogViewer.WinUI.csproj
- name: Publish
run: dotnet publish RemoteLogViewer.WinUI/RemoteLogViewer.WinUI.csproj -c Release-Unpackaged -r ${{ matrix.runtime }} -o publish/
- name: ZIP
run: Compress-Archive -Path publish/* -DestinationPath RemoteLogViewer-${{ github.ref_name }}-${{ matrix.runtime }}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: RemoteLogViewer-${{ matrix.runtime }}
path: RemoteLogViewer-${{ github.ref_name }}-${{ matrix.runtime }}.zip
release:
permissions:
contents: write
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: Generate release notes from CHANGELOG
id: changelog
run: |
TAG=${GITHUB_REF_NAME}
awk "/## ${TAG}/{flag=1;next}/## v/{flag=0}flag" CHANGELOG.md > RELEASE_NOTE.md
if [ ! -s RELEASE_NOTE.md ]; then
echo "No changelog entry found for ${TAG}, using default note."
echo "Release ${TAG}" > RELEASE_NOTE.md
fi
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body_path: RELEASE_NOTE.md
draft: false
prerelease: false
files: ./artifacts/**/*.zip