From c6a29a36edb121c87fcf13ed7a12129d31c81490 Mon Sep 17 00:00:00 2001 From: datadunia Date: Tue, 2 Jun 2026 12:33:36 +0700 Subject: [PATCH] fix(ci): remove release job, trigger on push/PR only --- .gitea/workflows/ci.yml | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 89eed0b..589cad3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,10 +1,12 @@ -name: NexusGuard CI/CD +name: NexusGuard CI on: push: - tags: - - 'v*' - - 'dev-*' + branches: + - main + pull_request: + branches: + - main env: BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }} @@ -24,9 +26,7 @@ jobs: submodules: true fetch-depth: 0 token: ${{ secrets.BUILD_TOKEN }} - # Tambahkan ini jika menggunakan self-hosted Gitea runner: persist-credentials: true - # Gitea kadang perlu ini: github-server-url: 'https://git.datadunia.com' - uses: actions/setup-go@v5 with: @@ -45,9 +45,7 @@ jobs: submodules: true fetch-depth: 0 token: ${{ secrets.BUILD_TOKEN }} - # Tambahkan ini jika menggunakan self-hosted Gitea runner: persist-credentials: true - # Gitea kadang perlu ini: github-server-url: 'https://git.datadunia.com' - uses: actions/setup-go@v5 with: @@ -66,9 +64,7 @@ jobs: submodules: true fetch-depth: 0 token: ${{ secrets.BUILD_TOKEN }} - # Tambahkan ini jika menggunakan self-hosted Gitea runner: persist-credentials: true - # Gitea kadang perlu ini: github-server-url: 'https://git.datadunia.com' - uses: actions/setup-node@v4 with: @@ -92,9 +88,7 @@ jobs: with: submodules: true token: ${{ secrets.BUILD_TOKEN }} - # Tambahkan ini jika menggunakan self-hosted Gitea runner: persist-credentials: true - # Gitea kadang perlu ini: github-server-url: 'https://git.datadunia.com' - uses: actions/setup-go@v5 with: @@ -125,9 +119,7 @@ jobs: with: submodules: true token: ${{ secrets.BUILD_TOKEN }} - # Tambahkan ini jika menggunakan self-hosted Gitea runner: persist-credentials: true - # Gitea kadang perlu ini: github-server-url: 'https://git.datadunia.com' - uses: actions/setup-go@v5 with: @@ -158,7 +150,6 @@ jobs: with: submodules: true token: ${{ secrets.BUILD_TOKEN }} - # Gitea kadang perlu ini: github-server-url: 'https://git.datadunia.com' - uses: actions/setup-node@v4 with: @@ -173,19 +164,4 @@ jobs: name: dashboard-ui-dist path: apps/dashboard-ui/dist/ - # ────────────────────────────────────────────── - # RELEASE — tag v* only - # ────────────────────────────────────────────── - release: - runs-on: ubuntu-latest - needs: [server-core-build, device-agent-cross-build, dashboard-dist] - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.BUILD_TOKEN }} - # Gitea kadang perlu ini: - github-server-url: 'https://git.datadunia.com' - - name: Echo release step - run: echo "Release step for Gitea" +