This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
135 lines (114 loc) · 3.52 KB
/
alpha_sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: Sync to Alpha
on:
push:
branches:
- main
# Enables manually triggering of Workflow
workflow_dispatch:
jobs:
sync-bosshp:
name: Sync Bosshp
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 0
# restores files last modified times based on git history so only newer files are uploaded
- name: 'Restore timestamps'
uses: chetan/git-restore-mtime-action@v1
- name: 📂 Sync Bosshp
uses: wangyucode/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: 'bosshp/'
remoteDir: 'csgo/addons/sourcemod/configs/MapBossHP/'
dryRun: false
sync-entwatch:
name: Sync Entwatch
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 0
- name: 'Restore timestamps'
uses: chetan/git-restore-mtime-action@v1
- name: 📂 Sync Entwatch
uses: wangyucode/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: 'entwatch/'
remoteDir: 'csgo/cfg/sourcemod/entwatch/maps/'
dryRun: false
sync-map-cfg:
name: Sync Map Configs
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 0
- name: 'Restore timestamps'
uses: chetan/git-restore-mtime-action@v1
- name: 📂 Sync Map Configs
uses: wangyucode/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: 'map-cfg'
remoteDir: 'csgo/cfg/sourcemod/map-cfg'
dryRun: false
sync-stripper:
name: Sync Stripper
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 0
- name: 'Restore timestamps'
uses: chetan/git-restore-mtime-action@v1
- name: 📂 Sync Stripper
uses: wangyucode/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: 'stripper/'
remoteDir: 'csgo/addons/stripper/maps/'
dryRun: false
sync-vscripts:
name: Sync Vscripts
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 0
- name: 'Restore timestamps'
uses: chetan/git-restore-mtime-action@v1
- name: 📂 Sync Vscripts
uses: wangyucode/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: 'vscripts/'
remoteDir: 'csgo/scripts/vscripts/'
dryRun: false