Skip to content

Commit

Permalink
Merge pull request #1 from brianpursley/fix-deprecated-build-steps
Browse files Browse the repository at this point in the history
Fix deprecated build steps and add pull request trigger
  • Loading branch information
brianpursley authored Apr 22, 2024
2 parents a7828a1 + 823d1de commit 6a47e89
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- '*'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+.*'
pull_request:
workflow_dispatch:

env:
Expand All @@ -19,12 +20,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }} # This checks out the commit that triggered the workflow run

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
run: dotnet pack Npgmq/Npgmq.csproj --no-build --configuration Release /p:PackageVersion=${{ env.VERSION }} /p:CopyrightYear=$(date +%Y) --output out

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: startsWith(github.ref, 'refs/tags/v')
with:
name: build-artifact
Expand All @@ -65,13 +66,13 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: out

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

Expand Down

0 comments on commit 6a47e89

Please sign in to comment.