Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Helle committed Nov 13, 2023
1 parent 5e03879 commit bef8b05
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
workflow_dispatch:
push:
paths-ignore:
- '**/*'
- '!.github/workflows/build.yml'
- '!src/**/*.csproj'
- '!src/**/*.cs'
branches:
- '*'
pull_request:
paths-ignore:
- '**/*'
- '!.github/workflows/build.yml'
- '!src/**/*.csproj'
- '!src/**/*.cs'
branches:
- '*'

env:
VERSION: 0.1.0.${{ github.run_number }}

jobs:
build:
name: 👌 Verify build
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v3
- name: 🛠️ Build
run: dotnet build -c Release src/HttpGenerator.sln -p:UseSourceLink=true -p:PackageVersion="${{ env.VERSION }}" -p:Version="${{ env.VERSION }}"
- name: 🧪 Test
run: dotnet test src/HttpGenerator.sln -c Release
- name: 🗳️ Upload
uses: actions/upload-artifact@v3
with:
name: Packages
path: |
**/*.nupkg
README.md

0 comments on commit bef8b05

Please sign in to comment.