Skip to content

Commit 1f73cae

Browse files
committed
Refactor GitHub workflows: remove sync_4D-WritePro-Interface.yml, add build.yml and sync_on_deleted.yml
1 parent 908cf7b commit 1f73cae

File tree

3 files changed

+94
-20
lines changed

3 files changed

+94
-20
lines changed

.github/workflows/build.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build
2+
on:
3+
push:
4+
pull_request:
5+
6+
env:
7+
DEPENDENCIES_BRANCH: 20.x
8+
9+
jobs:
10+
build:
11+
name: "Build on ${{ matrix.os }}"
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ macOS,Windows]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
lfs: true
23+
24+
- name: Check out 4D-SVG
25+
uses: actions/checkout@v4
26+
with:
27+
repository: 4d/4D-SVG
28+
path: Components/4D-SVG.4dbase
29+
ref : ${{ env.DEPENDENCIES_BRANCH }}
30+
fetch-depth: 0
31+
lfs: true
32+
33+
- name: Build
34+
uses: 4d/build4d-action@main
35+
with:
36+
product-line: vcs
37+
version: vcs
38+
build: official
39+
token: ${{ secrets.DLTK }}
40+
sync:
41+
needs: ["build"]
42+
runs-on: [self-hosted, macOS, ARM64]
43+
name: Git Repo Sync
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 0
48+
lfs: true
49+
50+
- name: Get Internal Sync action
51+
uses: actions/checkout@v4
52+
with:
53+
repository: 4d/gitlabsync-action
54+
ref: main
55+
path: .github/workflows/external/sync
56+
token: ${{ secrets.CI_GIT_SYNC }}
57+
58+
- id: Sync
59+
name: Sync
60+
uses: ./.github/workflows/external/sync/
61+
with:
62+
target-url: ${{ secrets.TARGET_URL }}
63+
target-username: ${{ secrets.TARGET_USERNAME }}
64+
target-token: ${{ secrets.TARGET_TOKEN }}

.github/workflows/sync_4D-WritePro-Interface.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Delete
2+
3+
on:
4+
delete
5+
6+
jobs:
7+
sync:
8+
runs-on: [self-hosted, macOS, ARM64]
9+
name: Git Repo Sync
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
lfs: true
15+
16+
- name: Get Internal Sync action
17+
uses: actions/checkout@v4
18+
with:
19+
repository: 4d/gitlabsync-action
20+
ref: main
21+
path: .github/workflows/external/sync
22+
token: ${{ secrets.CI_GIT_SYNC }}
23+
24+
- id: Sync
25+
uses: ./.github/workflows/external/sync/
26+
with:
27+
target-url: ${{ secrets.TARGET_URL }}
28+
target-username: ${{ secrets.TARGET_USERNAME }}
29+
target-token: ${{ secrets.TARGET_TOKEN }}
30+

0 commit comments

Comments
 (0)