diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac4dfe5..d2435b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,8 +2,30 @@ name: Publish on: release: types: [published] + push: + pull_request: + +env: + DOTNET_VERSION: 5.0.102 + jobs: + build: + runs-on: ubuntu-latest + name: Build + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup dotnet + uses: actions/setup-dotnet@v1 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + + - name: .NET Build + run: dotnet build + release: + needs: build name: Release strategy: matrix: @@ -26,9 +48,9 @@ jobs: - name: Setup dotnet uses: actions/setup-dotnet@v1 with: - dotnet-version: 5.0.102 + dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Build + - name: Zip shell: bash run: | # Define some variables for things we need