Skip to content

Commit

Permalink
Add GitHub Actions Environments
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Feb 9, 2021
1 parent 4d5b231 commit 6f4d39c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build

on:
push:
branches: main
branches:
- main
pull_request:
release:
types:
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 6f4d39c

Please sign in to comment.