Compare commits

...

6 Commits

Author SHA1 Message Date
Jendrik 3ca40b9604 merged main in branch 2025-09-25 18:40:27 +02:00
Jendrik 06a974ab5e Merge branch 'refs/heads/main' into feature/xml-import
# Conflicts:
#	main.mjs
#	src/system.json
2025-09-25 18:38:42 +02:00
macniel dd23f4e4b6 cicd/updating-of-manifest-info (#11)
Der PR behebt Naming Probleme und ermöglicht, dass Bauen von Versionen des Systems in der Art und Weise, dass FoundryVTT das erzeugte Paket auch versteht und mit umgehen kann.

---

Um ein Release zu bauen, muss lediglich unter dem Reiter Releases ein neuer Tag und der Quellbranch angegeben werden, nachdem der Build Runner durchgelaufen ist, werden an dem Release zwei weitere Dateien gehängt: Die Distributionsfähige Zip Datei sowie die dazugehörige Manifest Datei.

Co-authored-by: macniel <yuna.baehr@proton.me>
Reviewed-on: #11
2025-09-25 18:36:12 +02:00
macniel 3c0db3df50 updates release workflow to also publish system.json
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s Details
2025-09-25 15:42:55 +02:00
macniel 6db3e3226e chore: cicd installed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s Details
2025-09-25 14:47:26 +02:00
macniel f16528a231 cicd: installing workflow 2025-09-25 10:20:06 +02:00
19 changed files with 5316 additions and 5 deletions

View File

@ -0,0 +1,28 @@
name: Pull Request Check
run-name: ${{ gitea.actor }} is updating the pull request 🚀
on:
pull_request:
types: [synchronize]
jobs:
testing:
runs-on: node-01
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # Specify the Node.js version you need
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build project
env:
VERSION: ${{github.ref_name}}
run: npm run build

View File

@ -0,0 +1,48 @@
name: Release Job
run-name: ${{gitea.actor}} is releasing a package
on:
release:
types: [published]
jobs:
build:
runs-on: node-01
steps:
- name: Print Tag
run: |
echo ${{github.ref_name}}
echo ${GITHUB_REF##*/}
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # Specify the Node.js version you need
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build project
env:
VERSION: ${{github.ref_name}}
run: npm run build
- name: Package build output
run: |
cd ./dist
zip -r release.zip . # Adjust the path to your build output directory
mv release.zip /tmp/release.zip
- name: Package Upload
uses: akkuman/gitea-release-action@v1
with:
server_url: https://git.macniel.online
files: |
/tmp/release.zip
./dist/system.json

2
.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
dist
node_modules

View File

@ -16,3 +16,5 @@ Systementwicklung: https://foundryvtt.com/article/system-development/
API: https://foundryvtt.com/api/classes/foundry.abstract.Document.html
Demo: https://github.com/foundryvtt/dnd5e
Flim Flam

27
gulpfile.cjs 100644
View File

@ -0,0 +1,27 @@
const { src, dest, series } = require('gulp');
const process = require('node:process');
const replace = require('gulp-replace');
const sass = require('gulp-sass')(require('sass'));
function buildStyles() {
return src('src/style/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(dest('dist/style/'))
};
function copySource() {
return src(['src/**/*', '!src/style/**/*.scss'])
.pipe(dest('dist/'));
}
function updateManifestFile() {
return src('dist/system.json')
.pipe(replace('{{VERSION}}', process.env.VERSION))
.pipe(dest('dist/'))
}
exports.default = series(
copySource,
buildStyles,
updateManifestFile
)

5172
package-lock.json generated 100644

File diff suppressed because it is too large Load Diff

24
package.json 100644
View File

@ -0,0 +1,24 @@
{
"name": "DSA41Module",
"version": "0.0.1",
"description": "Another DSA 4.1 System Module for FoundryVTT",
"repository": {
"type": "git",
"url": "git+https://git.macniel.online/macniel/foundry-dsa41-game.git"
},
"type": "module",
"scripts": {
"test": "true",
"build": "gulp"
},
"devDependencies": {
"gulp": "^5.0.1",
"gulp-replace": "^1.1.4",
"gulp-sass": "^6.0.1",
"sass": "^1.93.2",
"sass-build": "^1.1.6"
},
"dependencies": {
"gulp-cli": "^3.1.0"
}
}

View File

@ -9,4 +9,6 @@ Hooks.once("init", () => {
CONFIG.Actor.dataModels = {
character: PlayerCharacterDataModel,
};
console.log("DSA 4.1 is ready for development!")
})

View File

@ -0,0 +1,6 @@
$bgcolor: FFF;
html {
background-color: $bgcolor;
}

View File

@ -1,8 +1,8 @@
{
"id": "DSA 4.1",
"id": "DSA_4-1",
"title": "Das Schwarze Auge 4.1",
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
"version": "0.0.1",
"version": "{{VERSION}}",
"compatibility": {
"minimum": 12,
"verified": 13
@ -15,7 +15,7 @@
"name": "macniel"
}],
"esmodules": ["main.mjs"],
"styles": ["styles/styles.css"],
"styles": ["style/styles.css"],
"packs": [{
"name": "talente",
"label": "Basistalente",
@ -52,6 +52,6 @@
"primaryTokenAttribute": "resources.sp",
"secondaryTokenAttribute": "resources.aus",
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/system.json",
"download": ""
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/system.json",
"download": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/release.zip"
}

View File