Skip to content

Merge branch 'master' of github.com:Supamiu/FFXIVOpcodes #83

Merge branch 'master' of github.com:Supamiu/FFXIVOpcodes

Merge branch 'master' of github.com:Supamiu/FFXIVOpcodes #83

Workflow file for this run

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" ] }'