Compare commits
13 Commits
25-bonewhi
...
split-gite
Author | SHA1 | Date | |
---|---|---|---|
2176187f2f | |||
834e335b4e | |||
086c93e8ea | |||
5abfa7ec16 | |||
f9fae12ae4 | |||
b54f6025fc | |||
fc2b32df32 | |||
9666a52b1c | |||
d5720caadb | |||
99c58c106b | |||
3f7d49e042 | |||
82629255fc | |||
657ab5f0f9 |
55
.gitea/workflows/deliver.yml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
name: Wallset Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'assets/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
ENTRY_FOLDER: assets
|
||||||
|
PACKAGE_NAME: "" # Not used while matrixing
|
||||||
|
RELEASE_VERSION: v${{ github.run_number }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
detect-changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changed: ${{ steps.set.outputs.changed }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Dump GitHub context
|
||||||
|
env:
|
||||||
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
run: echo "$GITHUB_CONTEXT"
|
||||||
|
|
||||||
|
- name: Detect changed packs
|
||||||
|
id: set
|
||||||
|
run: |
|
||||||
|
PACKS=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]')
|
||||||
|
echo "changed=$PACKS" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
gen-manifest:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: detect-changes
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
pack: ${{ fromJson(needs.detect-changes.outputs.changed) }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Node.js manifest check
|
||||||
|
run: |
|
||||||
|
cd src/
|
||||||
|
npm install
|
||||||
|
npm run start -- ${ENTRY_FOLDER} ${{ matrix.pack }}
|
||||||
|
cat ../${ENTRY_FOLDER}/${{ matrix.pack }}/theme.json
|
@@ -1,5 +1,5 @@
|
|||||||
include:
|
include:
|
||||||
- .gitlab/*.yml
|
- ./*.yml
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- Manifest
|
- Manifest
|
@@ -1,32 +0,0 @@
|
|||||||
manifest-job/HFW_Bonewhite_Tear:
|
|
||||||
variables:
|
|
||||||
PACKAGE_NAME: "HFW_Bonewhite_Tear"
|
|
||||||
extends: .manifest-job
|
|
||||||
|
|
||||||
test-images-job/HFW_Bonewhite_Tear:
|
|
||||||
needs:
|
|
||||||
- manifest-job/HFW_Bonewhite_Tear
|
|
||||||
variables:
|
|
||||||
PACKAGE_NAME: "HFW_Bonewhite_Tear"
|
|
||||||
extends: .test-job
|
|
||||||
|
|
||||||
bundle-job/HFW_Bonewhite_Tear:
|
|
||||||
needs:
|
|
||||||
- manifest-job/HFW_Bonewhite_Tear
|
|
||||||
variables:
|
|
||||||
PACKAGE_NAME: "HFW_Bonewhite_Tear"
|
|
||||||
extends: .bundle-job
|
|
||||||
|
|
||||||
upload-job/HFW_Bonewhite_Tear:
|
|
||||||
needs:
|
|
||||||
- bundle-job/HFW_Bonewhite_Tear
|
|
||||||
variables:
|
|
||||||
PACKAGE_NAME: "HFW_Bonewhite_Tear"
|
|
||||||
extends: .upload-job
|
|
||||||
|
|
||||||
release-job/HFW_Bonewhite_Tear:
|
|
||||||
needs:
|
|
||||||
- upload-job/HFW_Bonewhite_Tear
|
|
||||||
variables:
|
|
||||||
PACKAGE_NAME: "HFW_Bonewhite_Tear"
|
|
||||||
extends: .release-job
|
|
3
.vscode/settings.json
vendored
@@ -7,7 +7,6 @@
|
|||||||
"#14",
|
"#14",
|
||||||
"#15",
|
"#15",
|
||||||
"#2",
|
"#2",
|
||||||
"#24",
|
"#24"
|
||||||
"#25"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
Before Width: | Height: | Size: 736 KiB |
Before Width: | Height: | Size: 504 KiB |
Before Width: | Height: | Size: 529 KiB |
Before Width: | Height: | Size: 467 KiB |
Before Width: | Height: | Size: 493 KiB |
Before Width: | Height: | Size: 500 KiB |
Before Width: | Height: | Size: 507 KiB |
Before Width: | Height: | Size: 490 KiB |
Before Width: | Height: | Size: 479 KiB |
Before Width: | Height: | Size: 511 KiB |
Before Width: | Height: | Size: 501 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 450 KiB |
Before Width: | Height: | Size: 497 KiB |
Before Width: | Height: | Size: 580 KiB |
Before Width: | Height: | Size: 614 KiB |
Before Width: | Height: | Size: 675 KiB |
Before Width: | Height: | Size: 682 KiB |
Before Width: | Height: | Size: 684 KiB |
Before Width: | Height: | Size: 657 KiB |
Before Width: | Height: | Size: 720 KiB |
Before Width: | Height: | Size: 776 KiB |
Before Width: | Height: | Size: 861 KiB |
Before Width: | Height: | Size: 900 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 800 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 1005 KiB |
Before Width: | Height: | Size: 953 KiB |
Before Width: | Height: | Size: 846 KiB |
Before Width: | Height: | Size: 868 KiB |
Before Width: | Height: | Size: 820 KiB |
Before Width: | Height: | Size: 836 KiB |
Before Width: | Height: | Size: 792 KiB |
Before Width: | Height: | Size: 573 KiB |
Before Width: | Height: | Size: 546 KiB |
Before Width: | Height: | Size: 583 KiB |
Before Width: | Height: | Size: 656 KiB |
Before Width: | Height: | Size: 503 KiB |
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"displayName": "Horizon Forbidden West: BonewhiteTear",
|
|
||||||
"imageFilename": "HFW_Bonewhite_Tear_*.jpg",
|
|
||||||
"imageCredits": "Gorilla Games",
|
|
||||||
"sunriseImageList": [
|
|
||||||
24,25,26,27,28,29,30,31,32,33
|
|
||||||
],
|
|
||||||
"dayImageList": [
|
|
||||||
34,35,36,37,38,39,40,41,42,43,44,45,46
|
|
||||||
],
|
|
||||||
"sunsetImageList": [
|
|
||||||
47,48,49,4,1,5,6,7,8,9
|
|
||||||
],
|
|
||||||
"nightImageList": [
|
|
||||||
10,11,12,13,15,17,18,19,20,22,23
|
|
||||||
]
|
|
||||||
}
|
|
After Width: | Height: | Size: 606 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 1020 KiB |
After Width: | Height: | Size: 998 KiB |
After Width: | Height: | Size: 1000 KiB |
After Width: | Height: | Size: 922 KiB |
After Width: | Height: | Size: 871 KiB |
After Width: | Height: | Size: 826 KiB |
After Width: | Height: | Size: 615 KiB |
After Width: | Height: | Size: 705 KiB |
After Width: | Height: | Size: 629 KiB |
After Width: | Height: | Size: 548 KiB |
After Width: | Height: | Size: 585 KiB |
After Width: | Height: | Size: 549 KiB |
After Width: | Height: | Size: 587 KiB |
After Width: | Height: | Size: 611 KiB |
After Width: | Height: | Size: 633 KiB |
After Width: | Height: | Size: 679 KiB |
After Width: | Height: | Size: 646 KiB |
After Width: | Height: | Size: 695 KiB |
After Width: | Height: | Size: 676 KiB |
After Width: | Height: | Size: 645 KiB |
After Width: | Height: | Size: 568 KiB |
After Width: | Height: | Size: 937 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.2 MiB |
@@ -3,13 +3,19 @@ const path = require("path");
|
|||||||
const iptc = require("node-iptc");
|
const iptc = require("node-iptc");
|
||||||
const { exit } = require("process");
|
const { exit } = require("process");
|
||||||
|
|
||||||
|
|
||||||
// Fetch envs to target the right folder
|
// Fetch envs to target the right folder
|
||||||
|
const [argRoot, argSlug] = process.argv.slice(2);
|
||||||
const workDir = process.env["CI_PROJECT_DIR"];
|
const workDir = process.env["CI_PROJECT_DIR"];
|
||||||
const root = process.env["ENTRY_FOLDER"];
|
const root = argRoot || process.env["ENTRY_FOLDER"];
|
||||||
const slug = process.env["PACKAGE_NAME"];
|
const slug = argSlug || process.env["PACKAGE_NAME"];
|
||||||
if (!workDir || !slug || !root) exit(1);
|
if (!workDir || !root || !slug ) {
|
||||||
let workingDirectory = path.join(workDir, root, slug);
|
console.error('Erreur : Les variables suivantes sont requises :');
|
||||||
|
if (!workDir) console.error('- CI_PROJECT_DIR (variable d\'environnement)');
|
||||||
|
if (!root) console.error('- ENTRY_FOLDER (env) ou premier argument');
|
||||||
|
if (!slug) console.error('- PACKAGE_NAME (env) ou second argument');
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
const workingDirectory = path.join(workDir, root, slug);
|
||||||
|
|
||||||
// extract metadata from them
|
// extract metadata from them
|
||||||
fs.readdir(workingDirectory, (err, files) => {
|
fs.readdir(workingDirectory, (err, files) => {
|
||||||
|