Skip to content

Commit 884862d

Browse files
committed
Updated workflow event triggering
1 parent 9c08948 commit 884862d

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Main
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
47

58
jobs:
69
main:

.github/workflows/release.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Release
22

3-
on: [release]
3+
on:
4+
push:
5+
branches:
6+
- '!*'
7+
tags:
8+
- '*'
49

510
jobs:
611
release:
@@ -10,23 +15,28 @@ jobs:
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v1
13-
14-
- name: Setup node.js
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: 12.x
1818

1919
- name: Setup .NET Core
2020
uses: actions/setup-dotnet@v1
2121
with:
2222
dotnet-version: 2.2.108
2323

24-
- name: Pack
25-
run: npm run nuget:pack
24+
- name: Build
25+
run: dotnet build ./src/SharpDeck.sln --configuration Release
2626
env:
2727
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
2828

29-
- name: Push to NuGet
30-
run: npm run nuget:push
29+
- name: Test
30+
run: dotnet test ./src/SharpDeck.Tests/ --configuration Release --no-build
3131
env:
32-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
32+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
33+
34+
- name: Setup node.js
35+
uses: actions/setup-node@v1
36+
with:
37+
node-version: 12.x
38+
39+
- name: Pack
40+
run: npm run nuget:pack
41+
env:
42+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

0 commit comments

Comments
 (0)