commit
45e6e62af7
6 changed files with 32 additions and 9 deletions
12
.github/workflows/draft-release.yaml
vendored
12
.github/workflows/draft-release.yaml
vendored
|
|
@ -15,9 +15,9 @@ jobs:
|
||||||
# Install required packages
|
# Install required packages
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
|
||||||
- name: Reading the module.json for the version
|
- name: Reading the system.json for the version
|
||||||
id: "version"
|
id: "version"
|
||||||
run: cat module.json | echo version=`jq -r ".version"` >> "$GITHUB_OUTPUT"
|
run: cat system.json | echo version=`jq -r ".version"` >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# Check that tag doesn't exist
|
# Check that tag doesn't exist
|
||||||
- uses: mukunku/tag-exists-action@v1.5.0
|
- uses: mukunku/tag-exists-action@v1.5.0
|
||||||
|
|
@ -33,13 +33,13 @@ jobs:
|
||||||
if: ${{ vars.files_to_release == '' }}
|
if: ${{ vars.files_to_release == '' }}
|
||||||
run: exit 1
|
run: exit 1
|
||||||
|
|
||||||
- name: Move module.json to a temp file
|
- name: Move system.json to a temp file
|
||||||
id: manifest-move
|
id: manifest-move
|
||||||
run: mv module.json module.temp.json
|
run: mv system.json module.temp.json
|
||||||
|
|
||||||
- name: Update the download property in the manifest
|
- name: Update the download property in the manifest
|
||||||
id: manifest-update
|
id: manifest-update
|
||||||
run: cat module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > module.json
|
run: cat module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > system.json
|
||||||
|
|
||||||
- name: Create the zip
|
- name: Create the zip
|
||||||
run: zip -r release.zip ${{ vars.files_to_release }}
|
run: zip -r release.zip ${{ vars.files_to_release }}
|
||||||
|
|
@ -51,4 +51,4 @@ jobs:
|
||||||
commit: ${{ github.ref }}
|
commit: ${{ github.ref }}
|
||||||
draft: true
|
draft: true
|
||||||
generateReleaseNotes: true
|
generateReleaseNotes: true
|
||||||
artifacts: "release.zip,module.json"
|
artifacts: "release.zip,system.json"
|
||||||
|
|
@ -1 +1,7 @@
|
||||||
{}
|
{
|
||||||
|
"TYPES": {
|
||||||
|
"Actor": {
|
||||||
|
"hero": "Hero"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
10
module/data/Actor/Hero.mjs
Normal file
10
module/data/Actor/Hero.mjs
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
export class HeroData extends foundry.abstract.TypeDataModel {
|
||||||
|
static defineSchema() {
|
||||||
|
const schema = {};
|
||||||
|
return schema;
|
||||||
|
};
|
||||||
|
|
||||||
|
prepareBaseData() {};
|
||||||
|
|
||||||
|
prepareDerivedData() {};
|
||||||
|
};
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
|
import { HeroData } from "../data/Actor/Hero.mjs";
|
||||||
import { Logger } from "../utils/Logger.mjs";
|
import { Logger } from "../utils/Logger.mjs";
|
||||||
|
|
||||||
Hooks.once(`init`, () => {
|
Hooks.once(`init`, () => {
|
||||||
Logger.log(`Initializing`);
|
Logger.log(`Initializing`);
|
||||||
|
|
||||||
|
// Datamodel registrations
|
||||||
|
CONFIG.Actor.dataModels.hero = HeroData;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
1
ripcrypt.lock
Normal file
1
ripcrypt.lock
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
🔒
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "ripcrypt",
|
"id": "ripcrypt",
|
||||||
"title": "RipCrypt",
|
"title": "RipCrypt",
|
||||||
"description": "",
|
"description": "",
|
||||||
"version": "0.0.0",
|
"version": "0.0.1",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": 12,
|
"minimum": 12,
|
||||||
"verified": 12,
|
"verified": 12,
|
||||||
|
|
@ -37,7 +37,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"documentTypes": {
|
"documentTypes": {
|
||||||
"Actor": {},
|
"Actor": {
|
||||||
|
"hero": {}
|
||||||
|
},
|
||||||
"Item": {}
|
"Item": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue