Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed Jan 4, 2024
1 parent 5e382e3 commit e28244e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 35 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

runs:
using: "composite"
steps:
- uses: actions/setup-dotnet@v2

- name: Build
run: dotnet build

- name: Test
run: dotnet test

- name: Publish
run: dotnet publish .\DesktopClock\DesktopClock.csproj -o "publish" -c Release -r win-x64

- name: Create installer
run: |
dotnet tool install --global wix --version 4.0.3
wix build Product.wxs -o "publish/Install DesktopClock.msi"
- uses: actions/upload-artifact@v4
with:
path: |
publish
33 changes: 0 additions & 33 deletions .github/workflows/build.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/workflows/build.yml
- uses: ./.github/workflows/build-action.yml

- name: Create GitHub release
uses: ncipollo/release-action@v1
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pipeline

on:
push:
pull_request:

jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/build-action.yml

0 comments on commit e28244e

Please sign in to comment.