feat: initial project commit
All checks were successful
default / default (8.0) (push) Successful in 1m7s

This commit is contained in:
Louis Seubert 2024-04-14 17:42:13 +02:00
commit 30ef7bd477
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
40 changed files with 3752 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# workflows
## default.yml
The default workflow which is ran on every `push` or `pull_request` which will
build and package the project. This will also run the tests as part of the
workflow to ensure the code actually behaves like it should.
When the workflow runs on the `develop` branch of the repository, then an alpha
build is released to the registry.
## release.yml
The release workflow just build the current repository ref and publishes the
artifacts to the registry.

View file

@ -0,0 +1,37 @@
name: default
on:
push:
branches: ["main", "develop"]
paths-ignore:
- "doc/**"
- "*.md"
pull_request:
branches: ["main", "develop"]
paths-ignore:
- "doc/**"
- "*.md"
jobs:
default:
runs-on: debian-latest
strategy:
matrix:
dotnet-version: ["8.0"]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps:
- name: checkout
uses: https://git.geekeey.de/actions/checkout@1
- name: nuget login
run: |
# This token is readonly and can only be used for restore
dotnet nuget update source geekeey --store-password-in-clear-text \
--username "${{ github.actor }}" --password "${{ github.token }}"
- name: dotnet pack
run: |
dotnet pack -p:ContinuousIntegrationBuild=true
- name: dotnet test
run: |
dotnet test

View file

@ -0,0 +1,24 @@
name: release
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+"]
jobs:
release:
runs-on: debian-latest
strategy:
matrix:
dotnet-version: ["8.0"]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps:
- uses: https://git.geekeey.de/actions/checkout@1
- name: nuget login
run: |
# This token is readonly and can only be used for restore
dotnet nuget update source geekeey --store-password-in-clear-text \
--username "${{ github.actor }}" --password "${{ github.token }}"
- name: dotnet pack
run: |
dotnet pack -p:ContinuousIntegrationBuild=true