Skip to content

Commit 2129252

Browse files
committed
CI: build for each commit
This way GitHub will check if contributor's PRs still build, without the need to create a release.
1 parent 058084c commit 2129252

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
1-
name: Create GitHub Release
1+
name: Build & Create GitHub Release
22
on:
33
push:
4-
branches:
5-
- main
4+
pull_request:
65
workflow_dispatch:
76

87
permissions:
98
contents: write # Required to create releases
109

1110
jobs:
12-
execute-parallel-pipeline:
11+
build-check:
1312
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-dotnet@v5
16+
- name: Restore dependencies
17+
run: dotnet restore
18+
- name: Build
19+
run: dotnet build --no-restore
20+
21+
release:
22+
runs-on: ubuntu-latest
23+
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
24+
needs: [build-check]
1425
steps:
1526
- uses: actions/checkout@v5
1627
- uses: actions/setup-dotnet@v5

0 commit comments

Comments
 (0)