Skip to content

Commit

Permalink
fix: release workflow when not on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
oscar-wos committed Nov 16, 2024
1 parent c991439 commit 3e65e2c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build -c Release
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build and Release

on: push
on:
push:
branches:
- main

jobs:
build:
Expand Down

0 comments on commit 3e65e2c

Please sign in to comment.