Skip to content

Commit

Permalink
Updated workflow event triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Aug 24, 2019
1 parent 9c08948 commit 884862d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Main

on: [push]
on:
push:
branches:
- master

jobs:
main:
Expand Down
32 changes: 21 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Release

on: [release]
on:
push:
branches:
- '!*'
tags:
- '*'

jobs:
release:
Expand All @@ -10,23 +15,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.108

- name: Pack
run: npm run nuget:pack
- name: Build
run: dotnet build ./src/SharpDeck.sln --configuration Release
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

- name: Push to NuGet
run: npm run nuget:push
- name: Test
run: dotnet test ./src/SharpDeck.Tests/ --configuration Release --no-build
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Pack
run: npm run nuget:pack
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

0 comments on commit 884862d

Please sign in to comment.