Skip to content

Merge pull request #7 from christianhelle/renovate/actions-upload-art… #16

Merge pull request #7 from christianhelle/renovate/actions-upload-art…

Merge pull request #7 from christianhelle/renovate/actions-upload-art… #16

Workflow file for this run

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.1.${{ github.run_number }}
jobs:
build:
name: 👌 Verify build
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: 🛠️ Build
run: dotnet build -c Release CurlGenerator.sln -p:UseSourceLink=true -p:PackageVersion="${{ env.VERSION }}" -p:Version="${{ env.VERSION }}"
- name: 🧪 Test
run: dotnet test CurlGenerator.sln -c Release
- name: 🗳️ Upload
uses: actions/upload-artifact@v4
with:
name: Packages
path: |
**/*.nupkg
README.md