refactor: extract shared CI steps to deploy_call.yaml reusable workflow
Release / deploy (push) Has been cancelled
Beta Release / deploy (push) Has been cancelled

This commit is contained in:
datadunia
2026-05-08 05:48:02 +07:00
parent 9c771f098c
commit 25e0cfd15e
3 changed files with 2 additions and 4 deletions
+1
View File
@@ -8,6 +8,7 @@ on:
jobs: jobs:
deploy: deploy:
if: "contains(github.ref_name, 'beta') || contains(github.ref_name, 'test')"
uses: ./.gitea/workflows/deploy_call.yaml uses: ./.gitea/workflows/deploy_call.yaml
with: with:
prerelease: true prerelease: true
-4
View File
@@ -66,11 +66,8 @@ jobs:
- name: Create Release and upload assets - name: Create Release and upload assets
env: env:
# PINDAHKAN TOKEN KE SINI
TOKEN: ${{ secrets.BUILD_TOKEN }} TOKEN: ${{ secrets.BUILD_TOKEN }}
run: | run: |
# Sekarang $TOKEN sudah bisa dipakai di Bash
echo "--- Diagnostic ---"
if [ -z "$TOKEN" ]; then if [ -z "$TOKEN" ]; then
echo "Value: [EMPTY]" echo "Value: [EMPTY]"
exit 1 exit 1
@@ -82,7 +79,6 @@ jobs:
TAG="${{ gitea.ref_name }}" TAG="${{ gitea.ref_name }}"
API="${{ gitea.server_url }}/api/v1" API="${{ gitea.server_url }}/api/v1"
# 1. Create Release
JSON_BODY=$(printf '{"tag_name":"%s","name":"%s","body":"Release %s","draft":false,"prerelease":%s}' "$TAG" "$TAG" "$TAG" "${{ inputs.prerelease }}") JSON_BODY=$(printf '{"tag_name":"%s","name":"%s","body":"Release %s","draft":false,"prerelease":%s}' "$TAG" "$TAG" "$TAG" "${{ inputs.prerelease }}")
RELEASE_RESP=$(curl -s -X POST \ RELEASE_RESP=$(curl -s -X POST \
+1
View File
@@ -7,6 +7,7 @@ on:
jobs: jobs:
deploy: deploy:
if: "!contains(github.ref_name, 'beta') && !contains(github.ref_name, 'test')"
uses: ./.gitea/workflows/deploy_call.yaml uses: ./.gitea/workflows/deploy_call.yaml
with: with:
prerelease: false prerelease: false