Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0106cfd53 | ||
|
|
91d8af2079 | ||
|
|
a7229712ad | ||
|
|
9594df4f3e | ||
|
|
8a66695365 | ||
|
|
51c5050e35 | ||
|
|
55d9cde049 | ||
|
|
c76b8cca61 | ||
|
|
9fa08fc14b | ||
|
|
70c4f1a158 | ||
|
|
ac8e04cf1b | ||
|
|
a720449003 | ||
|
|
46840cb81e | ||
|
|
f0993952e6 | ||
|
|
51aaa4268a |
@@ -1,62 +1,14 @@
|
||||
image: node:14.15.5-stretch-slim
|
||||
|
||||
variables:
|
||||
GIT_DEPTH: 0
|
||||
GIT_STRATEGY: fetch
|
||||
MODULE_DIRS: lang styles
|
||||
MODULE_ZIP_DIRS: elements lang styles
|
||||
|
||||
stages:
|
||||
- build
|
||||
- release
|
||||
|
||||
build:
|
||||
stage: build
|
||||
before_script:
|
||||
- apt update
|
||||
- apt install -y zip
|
||||
script:
|
||||
- npm ci
|
||||
- npm run build
|
||||
- mkdir -p dist/lang
|
||||
- mkdir -p dist/styles
|
||||
- cp lang/* dist/lang/
|
||||
- cp styles/* dist/styles/
|
||||
- cp module.json dist
|
||||
- cd dist
|
||||
- zip wfrp4e-actor-sheet-print.zip -r *.* elements lang styles -x ".*"
|
||||
artifacts:
|
||||
name: wfrp4e-actor-sheet-print
|
||||
when: on_success
|
||||
paths:
|
||||
- dist/wfrp4e-actor-sheet-print.zip
|
||||
- dist/module.json
|
||||
expire_in: 1 day
|
||||
only:
|
||||
- tags
|
||||
- master
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
script:
|
||||
- echo 'Running the release job.'
|
||||
artifacts:
|
||||
name: wfrp4e-actor-sheet-print
|
||||
when: on_success
|
||||
paths:
|
||||
- dist/wfrp4e-actor-sheet-print.zip
|
||||
- dist/module.json
|
||||
expire_in: never
|
||||
release:
|
||||
tag_name: $CI_COMMIT_TAG
|
||||
name: 'Release $CI_COMMIT_TAG'
|
||||
description: './CHANGELOG.md'
|
||||
assets:
|
||||
links:
|
||||
- name: 'module'
|
||||
url: 'https://greenskin-foundryvtt.gitlab.io/-/wfrp4-actor-sheet-print/-/jobs/$CI_JOB_ID/artifacts/dist/wfrp4e-actor-sheet-print.zip'
|
||||
link_type: package
|
||||
- name: 'manifest'
|
||||
url: 'https://greenskin-foundryvtt.gitlab.io/-/wfrp4-actor-sheet-print/-/jobs/$CI_JOB_ID/artifacts/dist/module.json'
|
||||
link_type: package
|
||||
only:
|
||||
- tags
|
||||
include:
|
||||
- project: '$CI_PROJECT_ROOT_NAMESPACE/ci-tools/pipeline/ci-tools-pipeline-release'
|
||||
ref: 1.0.0
|
||||
file: '/release-common.yml'
|
||||
- project: '$CI_PROJECT_ROOT_NAMESPACE/ci-tools/pipeline/ci-tools-pipeline-release-node'
|
||||
ref: 1.0.1
|
||||
file: '/release-node.yml'
|
||||
- project: '$CI_PROJECT_ROOT_NAMESPACE/ci-tools/pipeline/ci-tools-pipeline-project-foundry-module'
|
||||
ref: main
|
||||
file: '/pipeline-foundry-module.yml'
|
||||
|
||||
10
module.json
10
module.json
@@ -2,7 +2,7 @@
|
||||
"name": "wfrp4e-actor-sheet-print",
|
||||
"title": "[WFRP4] Actor Sheet Print",
|
||||
"description": "Functions to print actor sheet",
|
||||
"version": "1.0.2",
|
||||
"version": "${MODULE_VERSION}",
|
||||
"minimumCoreVersion": "0.8.0",
|
||||
"compatibleCoreVersion": "0.8.9",
|
||||
"author": "Skeroujvapluvit",
|
||||
@@ -23,8 +23,8 @@
|
||||
],
|
||||
"styles": ["./styles/main.css"],
|
||||
"url": "https://github.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print",
|
||||
"download": "https://github.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/blob/dist/dist/wfrp4e-actor-sheet-print.zip?raw=true",
|
||||
"manifest": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/module.json",
|
||||
"readme": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/README.md",
|
||||
"changelog": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/CHANGELOG.md"
|
||||
"download": "https://gitlab.com/greenskin-foundryvtt/wfrp4-actor-sheet-print/-/releases/${MODULE_VERSION}/downloads/dist/wfrp4-actor-sheet-print.zip",
|
||||
"manifest": "https://gitlab.com/greenskin-foundryvtt/wfrp4-actor-sheet-print/-/releases/${MODULE_VERSION}/downloads/dist/module.json",
|
||||
"readme": "https://gitlab.com/greenskin-foundryvtt/wfrp4-actor-sheet-print/-/raw/${MODULE_VERSION}/README.md",
|
||||
"changelog": "https://gitlab.com/greenskin-foundryvtt/wfrp4-actor-sheet-print/-/raw/${MODULE_VERSION}/CHANGELOG.md"
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"package": "sh ./package.sh",
|
||||
"build": "webpack"
|
||||
},
|
||||
"version": "1.0.4",
|
||||
"devDependencies": {
|
||||
"@league-of-foundry-developers/foundry-vtt-types": "0.8.8-8",
|
||||
"husky": "4.3.7",
|
||||
|
||||
Reference in New Issue
Block a user