From 93badcb22d02b1c75834d4f6b6718ba5f70c3baf Mon Sep 17 00:00:00 2001 From: "derek.holloway" Date: Thu, 6 Aug 2026 10:07:56 -0700 Subject: [PATCH] Try gitea release --- .gitea/workflows/build.yaml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a80319f..aea02aa 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -2,8 +2,8 @@ name: Build and publish mistserver on: push: - branches: - - main + tags: + - 'v*' jobs: build: @@ -21,8 +21,31 @@ jobs: - name: Dotnet Publish run: dotnet publish ./MistoxServer --configuration Release --output ./publish --no-restore - - name: Upload Artifact - uses: actions/upload-artifact@v4 + - name: Archive Production Artifacts + run: | + cd ./publish + zip -r ../mistserver-${{ github.ref_name }}.zip . + cd .. + + # 2. Publish directly to Gitea Releases + - name: Create Gitea Release + uses: https://gitea.com/actions/release-action@main with: - name: dotnet-app-release - path: ./publish \ No newline at end of file + # Automatically uses the tag string pushed (e.g., v1.2.3) + name: "Release ${{ github.ref_name }}" + + # Change this text to your desired version description (Supports Markdown) + body: | + ## Mistserver Version ${{ github.ref_name }} + Automated deployment build compiled on Alpine Linux. + + ### Changelog + - Compiled via Gitea Actions + - Run ID: ${{ github.run_id }} + + # Target the zipped artifact we generated in step 1 + files: | + mistserver-*.zip + + # Uses Gitea's automatically injected repository token for authorization + api_key: '${{ secrets.GITHUB_TOKEN }}' \ No newline at end of file