Draft ci
This commit is contained in:
9
.github/workflows/push.yml
vendored
9
.github/workflows/push.yml
vendored
@@ -42,6 +42,15 @@ jobs:
|
|||||||
source/Hexfile/LICENSE_RELEASE.md
|
source/Hexfile/LICENSE_RELEASE.md
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Generate json index file
|
||||||
|
run: cd source && python3 metadata.py ${{ matrix.model }}.json
|
||||||
|
|
||||||
|
- name: Archive ${{ matrix.model }} index file
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.model }}.json
|
||||||
|
path: source/Hexfile/${{ matrix.model }}.json
|
||||||
|
|
||||||
build_multi-lang:
|
build_multi-lang:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container:
|
container:
|
||||||
|
|||||||
@@ -5,14 +5,20 @@ from pathlib import Path
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
# Creates an index metadata json file of the hexfiles folder
|
# Creates an index metadata json file of the hexfiles folder
|
||||||
# This is used by automation like the Pinecil updater
|
# This is used by automation like the Pinecil updater
|
||||||
|
|
||||||
|
|
||||||
|
if len(sys.argv) != 2:
|
||||||
|
print("Requires the output json name as an arg")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
HERE = Path(__file__).resolve().parent
|
HERE = Path(__file__).resolve().parent
|
||||||
|
|
||||||
HexFileFolder = os.path.join(HERE, "Hexfile")
|
HexFileFolder = os.path.join(HERE, "Hexfile")
|
||||||
OutputJSONPath = os.path.join(HexFileFolder, "index.json")
|
OutputJSONPath = os.path.join(HexFileFolder, sys.argv[1])
|
||||||
TranslationsFilesPath = os.path.join(HERE.parent, "Translations")
|
TranslationsFilesPath = os.path.join(HERE.parent, "Translations")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user