This commit is contained in:
1 parent
b14715e759
commit
93badcb22d
1 file changed
+29
-6
@@ -2,8 +2,8 @@ name: Build and publish mistserver
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -21,8 +21,31 @@ jobs:
|
|||||||
- name: Dotnet Publish
|
- name: Dotnet Publish
|
||||||
run: dotnet publish ./MistoxServer --configuration Release --output ./publish --no-restore
|
run: dotnet publish ./MistoxServer --configuration Release --output ./publish --no-restore
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Archive Production Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
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:
|
with:
|
||||||
name: dotnet-app-release
|
# Automatically uses the tag string pushed (e.g., v1.2.3)
|
||||||
path: ./publish
|
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 }}'
|
||||||
Reference in new issue
Block a user