-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (47 loc) · 1.44 KB
/
regenerate.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
name: Regenerate resource files
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build_and_regenerate:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Setup Nuget.exe
uses: NuGet/[email protected]
- name: Install dependencies
run: nuget restore
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Generate opcode store
run: |
cd FFXIVOpcodes/bin/Release/netcoreapp3.1/
./FFXIVOpcodes.exe
- name: Generate constants store
run: |
cd FFXIVConstants/bin/Release/netcoreapp3.1/
./FFXIVConstants.exe
- name: Commit new files
run: |
git config --global user.email "[email protected]"
git config --global user.name "Automated Data Update"
git commit -a -m "Generate data stores"
git push
- name: Purge jsdelivr cache
run: |
Invoke-RestMethod `
-Method 'Post' `
-Uri https://purge.jsdelivr.net/ `
-Headers @{ `
"cache-control" = "no-cache"; `
"content-type" = "application/json"; `
} `
-TimeoutSec 10 `
-Body '{ "path": [ "/gh/karashiiro/FFXIVOpcodes@latest/opcodes.min.json", "/gh/karashiiro/FFXIVOpcodes@latest/constants.min.json" ] }'