2025-02-18 21:53:23 +01:00
|
|
|
name: Release
|
2025-02-16 12:11:30 +01:00
|
|
|
|
2025-02-16 10:26:43 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
2025-02-18 21:53:23 +01:00
|
|
|
detect-and-run:
|
2025-02-16 10:26:43 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2025-02-18 21:53:23 +01:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Determine hosting platform
|
|
|
|
id: platform
|
|
|
|
run: |
|
|
|
|
if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then
|
|
|
|
echo "platform=github" >> $GITHUB_OUTPUT
|
|
|
|
else
|
|
|
|
echo "platform=gitea" >> $GITHUB_OUTPUT
|
|
|
|
fi
|
|
|
|
|
2025-02-18 22:18:49 +01:00
|
|
|
- name: Run Release Workflow
|
|
|
|
run: |
|
|
|
|
if [[ "${{ steps.platform.outputs.platform }}" == "github" ]]; then
|
|
|
|
./.github/workflows/providers/github-release.sh
|
|
|
|
else
|
|
|
|
./.github/workflows/providers/gitea-release.sh
|
|
|
|
fi
|