From b6b5a410eb748e4d9406176681a94998e8e674d9 Mon Sep 17 00:00:00 2001 From: thx20001 Date: Wed, 4 Mar 2026 19:03:04 +0100 Subject: [PATCH] Added Prerelease --- .gitea/workflows/PrerRelease.yaml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/PrerRelease.yaml diff --git a/.gitea/workflows/PrerRelease.yaml b/.gitea/workflows/PrerRelease.yaml new file mode 100644 index 0000000..5e826ed --- /dev/null +++ b/.gitea/workflows/PrerRelease.yaml @@ -0,0 +1,41 @@ +name: Build and Release Project +run-name: Building and Releasing Main Branch 🚀 +on: + push: + branches-ignore: + - 'main' + tags: + - '**' + +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 Linux Release + if: ${{ matrix.publishprofile == 'PublishLinuxX64' }} + run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz -C GiteaTest/publish . + - name: Pack Windows Release + if: ${{ matrix.publishprofile == 'PublishWinX64' }} + run: cd GiteaTest/publish/ && zip ../../${{ matrix.publishprofile }}.zip * + - name: Release Files + uses: akkuman/gitea-release-action@v1 + with: + name: Yee + body: Test + prerelease: true + md5sum: true + files: |- + ${{ matrix.publishprofile }}.*