Skip to content

Commit

Permalink
CI - push nuget only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotr7 committed Sep 4, 2023
1 parent 57b520d commit 399f7c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Clone
uses: actions/checkout@v3

- name: Build
run: dotnet build src
6 changes: 3 additions & 3 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Publish

on:
push:
branches:
- master
tags:
- '*'

jobs:
push:
runs-on: ubuntu-latest

steps:
- name: Setup .NET 6.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
Expand Down

0 comments on commit 399f7c3

Please sign in to comment.