-
Notifications
You must be signed in to change notification settings - Fork 0
165 lines (163 loc) · 5.88 KB
/
export.yml
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: Export to SQLite
on:
- workflow_dispatch
jobs:
export_ace_world_patches:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install datasette
run: python3 -m pip install datasette
- name: Install db-to-sqlite from my fork
run: python3 -m pip install "db-to-sqlite @ git+https://github.com/amoeba/db-to-sqlite#egg=db-to-sqlite[mysql]"
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Download release
uses: robinraju/release-downloader@v1.7
with:
repository: ACEmulator/ACE-World-16PY-Patches
latest: true
fileName: ACE.World*.zip
- name: Decompress
run: find . -iname "ACE-World*.zip" -exec unzip {} \;
- name: Load SQL
run: sh scripts/load.sh
- name: Export
run: db-to-sqlite --all mysql://root:root@localhost/ace_world ace_world_patches.db
- uses: actions/upload-artifact@v3
with:
name: ace_world_patches
path: ./ace_world_patches.db
export_ace_pcap_exports:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install datasette
run: python3 -m pip install datasette
- name: Install db-to-sqlite from my fork
run: python3 -m pip install "db-to-sqlite @ git+https://github.com/amoeba/db-to-sqlite#egg=db-to-sqlite[mysql]"
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Download latest release
uses: robinraju/release-downloader@v1.7
with:
repository: ACEmulator/ACE-PCAP-Exports
latest: true
fileName: ACE.World*.zip
- name: Decompress
run: find . -iname "ACE-World*.zip" -exec unzip {} \;
- name: Load SQL
run: sh scripts/load.sh
- name: Export
run: db-to-sqlite --all mysql://root:root@localhost/ace_world ace_pcap_exports.db
- uses: actions/upload-artifact@v3
with:
name: ace_pcap_exports
path: ./ace_pcap_exports.db
export_ace_base:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install datasette
run: python3 -m pip install datasette
- name: Install db-to-sqlite from my fork
run: python3 -m pip install "db-to-sqlite @ git+https://github.com/amoeba/db-to-sqlite#egg=db-to-sqlite[mysql]"
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Download release
uses: robinraju/release-downloader@v1.7
with:
repository: ACEmulator/ACE-World-16PY
latest: true
fileName: ACE.World*.zip
- name: Decompress
run: find . -iname "ACE-World*.zip" -exec unzip {} \;
- name: Load SQL
run: sh scripts/load.sh
- name: Export
run: db-to-sqlite --all mysql://root:root@localhost/ace_world ace_world_base.db
- uses: actions/upload-artifact@v3
with:
name: ace_world_base
path: ./ace_world_base.db
export_magnus_ace_shard_retail:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install datasette
run: python3 -m pip install datasette
- name: Install db-to-sqlite from my fork
run: python3 -m pip install "db-to-sqlite @ git+https://github.com/amoeba/db-to-sqlite#egg=db-to-sqlite[mysql]"
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Clone repository
uses: actions/checkout@v4
with:
repository: https://github.com/Mag-nus/ACE-Shard-Retail
- name: Load SQL
run: sh scripts/load.sh
- name: Export
run: db-to-sqlite --all mysql://root:root@localhost/ace_shard magnus_ace_shared_retail.db
- uses: actions/upload-artifact@v3
with:
name: ace_world_patches
path: ./magnus_ace_shared_retail.db
dogsheep:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: python -m pip install github-to-sqlite
- name: Create auth.json
run: |
echo "{\"github_personal_token\": \"${{ secrets.GITHUB_TOKEN }}\"}" > auth.json
- run: github-to-sqlite issues github.db acemulator/ace
- run: github-to-sqlite pull-requests github.db acemulator/ace
- run: github-to-sqlite issue-comments github.db acemulator/ace
- run: github-to-sqlite commits github.db acemulator/ace
- run: github-to-sqlite contributors github.db acemulator/ace
- uses: actions/upload-artifact@v3
with:
name: github.db
path: ./github.db
publish_with_datasette:
runs-on: ubuntu-latest
needs:
[
export_ace_world_patches,
export_ace_pcap_exports,
export_ace_base,
export_magnus_ace_shard_retail,
dogsheep,
]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: "ace_world_patches"
- uses: actions/download-artifact@v3
with:
name: "ace_pcap_exports"
- uses: actions/download-artifact@v3
with:
name: "ace_world_base"
- uses: actions/download-artifact@v3
with:
name: "magnus_ace_shared_retail"
- uses: actions/download-artifact@v3
with:
name: "github.db"
- name: Install datasette
run: python3 -m pip install datasette
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: datasette install datasette-publish-fly
- run: ls -al
- run: datasette publish fly --metadata metadata.json --app="acemu-db" *db
env:
FLY_APP: $${secrets.FLY_APP}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}