From 8aa5679a05e5ba925d9557700d4f12bea3b91807 Mon Sep 17 00:00:00 2001 From: Muhammad Rehan Saeed Date: Tue, 9 Feb 2021 09:46:45 +0000 Subject: [PATCH] Add GitHub Actions Environments --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82bb35c1..ac0457dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,8 @@ name: Build on: push: - branches: main + branches: + - main pull_request: release: types: @@ -58,6 +59,9 @@ jobs: name: 'Push GitHub Packages' needs: build if: github.ref == 'refs/heads/main' || github.event_name == 'release' + environment: + name: 'GitHub Packages' + url: https://github.com/RehanSaeed/Serilog.Exceptions/packages runs-on: windows-latest steps: - name: 'Download Artefact' @@ -75,6 +79,9 @@ jobs: name: 'Push NuGet Packages' needs: build if: github.event_name == 'release' + environment: + name: 'NuGet' + url: https://www.nuget.org/packages?q=Serilog.Exceptions runs-on: windows-latest steps: - name: 'Download Artefact'