Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-and-test/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Build and test

description: Restores dependencies, builds, and runs tests.

Expand Down
16 changes: 0 additions & 16 deletions .github/actions/check-formatting/action.yml

This file was deleted.

9 changes: 3 additions & 6 deletions .github/actions/create-release-artifacts/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Publish
name: Create release artifacts

description: Creates release-ready binaries and uploads them as artifacts.

inputs:
version:
description: 'Version number for the app'
description: 'Version number'
default: '0.0.0'
arch:
description: 'Architecture for the build'
default: 'x64'
artifact-name:
description: 'Name for the uploaded artifact bundle'
default: 'desktopclock'

runs:
using: "composite"
Expand All @@ -34,7 +31,7 @@ runs:

- uses: actions/upload-artifact@v7
with:
name: ${{ inputs.artifact-name }}
name: desktopclock-${{ inputs.arch }}
if-no-files-found: error
path: |
publish/*.zip
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ jobs:
steps:
- uses: actions/checkout@v5

- uses: ./.github/actions/check-formatting
- uses: actions/setup-dotnet@v5

- name: Restore
shell: bash
run: dotnet restore

- name: Check Formatting
shell: bash
run: dotnet format --verify-no-changes --no-restore

build-test:
name: Build and Test
name: Build and test
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -46,4 +54,3 @@ jobs:
- uses: ./.github/actions/create-release-artifacts
with:
arch: ${{ matrix.arch }}
artifact-name: desktopclock-${{ matrix.arch }}
17 changes: 4 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version number for the app'
description: 'Version number'
required: true
default: '0.0.0'
updateRelease:
description: 'Update existing release'
required: true
default: 'false'
type: boolean
default: false
dryRun:
description: 'Dry run'
required: true
Expand All @@ -21,16 +22,8 @@ permissions:
contents: write

jobs:
format:
name: Format
runs-on: windows-2025
steps:
- uses: actions/checkout@v5

- uses: ./.github/actions/check-formatting

build-test:
name: Build and Test
name: Build and test
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
Expand All @@ -51,12 +44,10 @@ jobs:
with:
version: ${{ inputs.version }}
arch: ${{ matrix.arch }}
artifact-name: desktopclock-${{ matrix.arch }}

deploy:
name: Create GitHub release
needs:
- format
- build-test
- package
runs-on: windows-2025
Expand Down
Loading