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 e361b59 commit 25f2f71
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
name: Publish
name: CI
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 Jellyfin.Plugins.Telegram/

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 25f2f71

Please sign in to comment.