Skip to content

Commit

Permalink
GitHubCI: add a main build job
Browse files Browse the repository at this point in the history
The existing job was only happening at release time, while
this one should make sure that CI doesn't break for each
push or PR.
  • Loading branch information
knocte committed Jan 9, 2024
1 parent 9b906a7 commit 2936535
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,30 @@ name: Publish
on:
release:
types: [published]
push:
pull_request:

env:
DOTNET_VERSION: 5.0.102

jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: .NET Build
run: dotnet build

release:
needs: build
name: Release
strategy:
matrix:
Expand All @@ -26,9 +48,9 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.102
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build
- name: Zip
shell: bash
run: |
# Define some variables for things we need
Expand Down

0 comments on commit 2936535

Please sign in to comment.