Skip to content

Bump the minor-and-patch group with 3 updates (#57) #131

Bump the minor-and-patch group with 3 updates (#57)

Bump the minor-and-patch group with 3 updates (#57) #131

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build
publish:
needs: build
strategy:
matrix:
include:
- os: windows-latest
rid: win-x64
- os: ubuntu-latest
rid: linux-x64
- os: macos-latest
rid: osx-arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Publish AOT
run: dotnet publish ActivityGearSync/ActivityGearSync.csproj -c Release -r ${{ matrix.rid }}
- name: Get version from build output
id: version
shell: bash
run: |
VERSION=$(cat ActivityGearSync/bin/Release/net10.0/${{ matrix.rid }}/publish/version.json | jq -r '.Version')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: ActivityGearSync-${{ matrix.rid }}-${{ steps.version.outputs.version }}
path: |
ActivityGearSync/bin/Release/net10.0/${{ matrix.rid }}/publish/ActivityGearSync
ActivityGearSync/bin/Release/net10.0/${{ matrix.rid }}/publish/ActivityGearSync.exe
ActivityGearSync/bin/Release/net10.0/${{ matrix.rid }}/publish/version.json
if-no-files-found: error