Skip to content

Commit

Permalink
separate build and publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegZee committed Feb 23, 2024
1 parent d14d486 commit c8ba0cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: Build checks

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build & test
run: dotnet fsi build.fsx -- -- build test
20 changes: 1 addition & 19 deletions .github/workflows/dotnet.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,16 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: Publish

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build & test
run: dotnet fsi build.fsx -- -- build test

publish:

runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit c8ba0cd

Please sign in to comment.