Compare commits
7
Commits
9d97ad0975
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93badcb22d | ||
|
|
b14715e759 | ||
|
|
f93b78e5c1 | ||
|
|
e868d2116f | ||
|
|
4dc7d6b075 | ||
|
|
6f40e44224 | ||
|
|
291d0c3f07 |
@@ -0,0 +1,51 @@
|
|||||||
|
name: Build and publish mistserver
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: alpine-linux
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET SDK
|
||||||
|
run: apk add dotnet10-sdk
|
||||||
|
|
||||||
|
- name: Restore Dependencies
|
||||||
|
run: dotnet restore ./MistoxServer
|
||||||
|
|
||||||
|
- name: Dotnet Publish
|
||||||
|
run: dotnet publish ./MistoxServer --configuration Release --output ./publish --no-restore
|
||||||
|
|
||||||
|
- 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:
|
||||||
|
# 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 }}'
|
||||||
Reference in new issue
Block a user