From 884862dfca46b67a1d56350d43da747587718306 Mon Sep 17 00:00:00 2001 From: GeekyEggo Date: Sat, 24 Aug 2019 18:51:25 +0100 Subject: [PATCH] Updated workflow event triggering --- .github/workflows/main.yml | 5 ++++- .github/workflows/release.yml | 32 +++++++++++++++++++++----------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dcb084e..fae350a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: Main -on: [push] +on: + push: + branches: + - master jobs: main: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08967af..bac2053 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,11 @@ name: Release -on: [release] +on: + push: + branches: + - '!*' + tags: + - '*' jobs: release: @@ -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