Files
Test/.gitea/workflows/buildproject.yaml
Fynn Wittich 313bb4872a
Some checks failed
Build and Release Project / Publish with Dotnet 8.0.405 and Profile PublishWinX64 (push) Has been cancelled
Build and Release Project / Publish with Dotnet 8.0.405 and Profile PublishLinuxX64 (push) Has been cancelled
Update buildproject.yaml
2025-01-18 18:37:55 +01:00

29 lines
986 B
YAML

name: Build and Release Project
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '8.0.405' ]
publishprofile: [ 'PublishLinuxX64', 'PublishWinX64' ]
name: Publish with Dotnet ${{ matrix.dotnet }} and Profile ${{ matrix.publishprofile }}
steps:
- name: Clone Project
uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Build/Publish Project
run: dotnet publish GiteaTest.sln -p:PublishProfile=${{ matrix.publishprofile }}
- name: Pack Release
run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz -C GiteaTest/publish .
- name: Release ${{ matrix.publishprofile }}.tar.gz
uses: akkuman/gitea-release-action@v1
with:
files: |-
${{ matrix.publishprofile }}.tar.gz