This commit is contained in:
parent
e10150eb90
commit
e66bda3e6f
2 changed files with 20 additions and 27 deletions
|
@ -42,31 +42,6 @@ jobs:
|
|||
path: |
|
||||
./build/libs/*.jar
|
||||
!./build/libs/*-sources.jar
|
||||
- name: Make publish CFG
|
||||
run: |
|
||||
cd ${{ gitea.workspace }}
|
||||
echo '{ ' > ./publish.config.json
|
||||
echo ' "version": "1.0.2", ' >> ./publish.config.json
|
||||
echo ' "featured": false, ' >> ./publish.config.json
|
||||
echo ' "releaseChannel": "dev", ' >> ./publish.config.json
|
||||
echo ' "loaders": ["quilt"], ' >> ./publish.config.json
|
||||
echo ' "gameVersions": { ' >> ./publish.config.json
|
||||
echo ' "file": "src/main/resources/quilt.mod.json", ' >> ./publish.config.json
|
||||
echo ' "key": "quilt_loader.depends.1.versions" ' >> ./publish.config.json
|
||||
echo ' }, ' >> ./publish.config.json
|
||||
echo ' "files": { ' >> ./publish.config.json
|
||||
echo ' "primary": "build/libs/CookieServerUtils-1.0.2.jar" ' >> ./publish.config.json
|
||||
echo ' }, ' >> ./publish.config.json
|
||||
echo ' "repoApi": "", ' >> ./publish.config.json
|
||||
echo ' "gitReleaseUrl": "/releases/latest", ' >> ./publish.config.json
|
||||
echo ' "crmm": { ' >> ./publish.config.json
|
||||
echo ' "authToken": "${{ CRMM_TOKEN_ADMKAWL }}", ' >> ./publish.config.json
|
||||
echo ' "projectId": "cookie-server-utils" ' >> ./publish.config.json
|
||||
echo ' } ' >> ./publish.config.json
|
||||
echo '} ' >> ./publish.config.json
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls -lh ${{ gitea.workspace }}
|
||||
- name: Install node js
|
||||
run: |
|
||||
apt-get install -y --no-install-recommends nodejs
|
||||
|
|
22
publish.mjs
22
publish.mjs
|
@ -58,8 +58,26 @@ async function prepareMultipartFormData(data) {
|
|||
|
||||
async function loadConfigData() {
|
||||
console.log("Loading config...");
|
||||
console.log(process.cwd());
|
||||
const config = await getConfig();
|
||||
//const config = await getConfig();
|
||||
const config = {
|
||||
"version": "1.0.2",
|
||||
"featured": false,
|
||||
"releaseChannel": "dev",
|
||||
"loaders": ["quilt"],
|
||||
"gameVersions": {
|
||||
"file": "src/main/resources/quilt.mod.json",
|
||||
"key": "quilt_loader.depends.1.versions"
|
||||
},
|
||||
"files": {
|
||||
"primary": "build/libs/CookieServerUtils-1.0.2.jar"
|
||||
},
|
||||
"repoApi": "",
|
||||
"gitReleaseUrl": "/releases/latest",
|
||||
"crmm": {
|
||||
"authToken": process.env.CRMM_TOKEN_ADMKAWL,
|
||||
"projectId": "cookie-server-utils"
|
||||
}
|
||||
}
|
||||
|
||||
// Version
|
||||
const version = config.version;
|
||||
|
|
Loading…
Reference in a new issue