.gitea/workflows/build.yml Güncelle

workflow tag push
This commit is contained in:
2026-07-14 18:21:24 +00:00
parent 5af021be37
commit af18eb85be
+36 -3
View File
@@ -2,7 +2,9 @@ name: Build Ceviri Uygulamasi
on:
push:
branches: [main, master]
# Sadece yeni bir tag pushlandığında çalışır (Örn: git tag 1.0.0 && git push origin 1.0.0)
tags:
- '*'
workflow_dispatch: {}
jobs:
@@ -11,7 +13,6 @@ jobs:
container:
image: ghcr.io/cirruslabs/flutter:stable
steps:
# Runner içinde Git ve Node.js kurulu olduğundan emin oluyoruz
- name: Runner Hazirligi (Node ve Git)
run: |
apt-get update && apt-get install -y git nodejs || true
@@ -36,7 +37,6 @@ jobs:
container:
image: ubuntu:24.04
steps:
# Kodu çekmeden ve sistem paketlerini kurmadan önce Node ve Git'i kuruyoruz (127 hatasını önler)
- name: Node ve Git Kur (Action'ların çalışabilmesi için şart)
run: |
apt-get update
@@ -82,3 +82,36 @@ jobs:
with:
name: ceviri-linux-bundle
path: build/linux/x64/release/ceviri-linux-bundle.tar.gz
release:
name: Gitea Release Olustur
needs: [build-android, build-linux]
runs-on: docker
container:
image: ubuntu:24.04
steps:
- name: Node, Git ve Sertifikalari Kur
run: |
apt-get update
apt-get install -y git nodejs curl ca-certificates
- name: Android APK'yi indir
uses: https://gitea.com/actions/download-artifact@v3
with:
name: ceviri-android-apk
path: release-assets/
- name: Linux Bundle'i indir
uses: https://gitea.com/actions/download-artifact@v3
with:
name: ceviri-linux-bundle
path: release-assets/
- name: Gitea'da Sürümü Yükle
uses: https://gitea.com/actions/release-action@main
with:
files: |
release-assets/app-release.apk
release-assets/ceviri-linux-bundle.tar.gz
title: Release ${{ github.ref_name }}
api_key: ${{ secrets.GITEA_TOKEN }}