Skip to content

1.0.0.9 versioning

1.0.0.9 versioning #7

Workflow file for this run

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Release ImmichFrame
jobs:
release:
name: Release
strategy:
matrix:
kind: ['linux-x64', 'linux-arm', 'linux-arm64', 'windows', 'macOS']
include:
- kind: linux-x64
os: ubuntu-latest
target: linux-x64
- kind: linux-arm
os: ubuntu-latest
target: linux-arm
- kind: linux-arm64
os: ubuntu-latest
target: linux-arm64
- kind: windows
os: windows-latest
target: win-x64
- kind: macOS
os: macos-latest
target: osx-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
shell: bash
run: |
tag=$(git describe --tags --abbrev=0)
release_name="ImmichFrame-$tag-${{ matrix.target }}"
# Build everything
dotnet publish ./ImmichFrame.Desktop/ImmichFrame.Desktop.csproj --runtime "${{ matrix.target }}" -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -c Release -o "$release_name" --self-contained true
# Pack files
if [ "${{ matrix.target }}" == "win-x64" ]; then
# Pack to zip for Windows
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
tar czvf "${release_name}.tar.gz" "$release_name"
fi
# Delete output directory
rm -r "$release_name"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "ImmichFrame*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}