fix(ci): remove release job, trigger on push/PR only
NexusGuard CI / server-core-test (push) Failing after 46s
NexusGuard CI / server-core-build (push) Has been skipped
NexusGuard CI / device-agent-test (push) Failing after 40s
NexusGuard CI / device-agent-cross-build (amd64, linux) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (amd64, windows) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (arm64, linux) (push) Has been skipped
NexusGuard CI / dashboard-test (push) Failing after 41s
NexusGuard CI / dashboard-dist (push) Has been skipped
Beta Release / deploy (push) Successful in 2m5s
NexusGuard CI / server-core-test (push) Failing after 46s
NexusGuard CI / server-core-build (push) Has been skipped
NexusGuard CI / device-agent-test (push) Failing after 40s
NexusGuard CI / device-agent-cross-build (amd64, linux) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (amd64, windows) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (arm64, linux) (push) Has been skipped
NexusGuard CI / dashboard-test (push) Failing after 41s
NexusGuard CI / dashboard-dist (push) Has been skipped
Beta Release / deploy (push) Successful in 2m5s
This commit is contained in:
+7
-31
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user