mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-17 09:06:36 +08:00
25 lines
902 B
YAML
25 lines
902 B
YAML
name: publish-gitea
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: "GitHub release tag to publish (default: latest)"
|
|
required: false
|
|
default: latest
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: [self-hosted, linux, x64]
|
|
steps:
|
|
- name: Download publish scripts
|
|
run: |
|
|
BASE=https://raw.githubusercontent.com/TommyFang2077/dsh-easy-desktop/main
|
|
curl -fsSL -o build-gitea-update.py "$BASE/scripts/build-gitea-update.py"
|
|
curl -fsSL -o publish-gitea-release.sh "$BASE/scripts/publish-gitea-release.sh"
|
|
curl -fsSL -o publish-gitea-actions.sh "$BASE/scripts/publish-gitea-actions.sh"
|
|
- name: Publish to Gitea
|
|
run: bash publish-gitea-actions.sh
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
|
GITEA_BASE_URL: http://192.168.30.33:3000
|
|
RELEASE_TAG: ${{ github.event.inputs.tag }} |