mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-18 05:16:35 +08:00
26 lines
783 B
YAML
26 lines
783 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: Publish to Gitea
|
|
run: |
|
|
set -euo pipefail
|
|
apk add --no-cache curl jq python3 >/dev/null 2>&1 || true
|
|
rm -rf repo
|
|
git clone -q --depth 1 http://192.168.30.33:3000/TomHanck4/dsh-easy-desktop.git repo
|
|
cd repo
|
|
bash scripts/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 }}
|
|
working-directory: /tmp |