CR_CookieServerUtils_Mod/.forgejo/workflows/build.yaml
pietru2004 e55ea72c0e
Some checks failed
/ Auto-Build-App (push) Failing after 1m24s
update build script
2024-11-05 08:20:50 +01:00

77 lines
3.6 KiB
YAML

on: [push]
env:
godot_version: 4.2.1
jobs:
Auto-Build-App:
runs-on: docker
steps:
- name: Install Packages
run: |
apt-get update
apt-get install -y --no-install-recommends zip \
ca-certificates \
git \
git-lfs \
wget \
curl \
zip \
openjdk-17-jdk
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Set gradlew perms
run: chmod +x ./gradlew
- name: List files in the repos
run: ls ${{ gitea.workspace }}
- name: Init gradle
run: ./gradlew init
- run: echo "🖥️ The workflow is now ready to build code on the runner."
- name: Build App
run: |
./gradlew build
ls ${{ gitea.workspace }}
- name: List files in the repository
run: |
ls -lh ${{ gitea.workspace }}
- name: Upload jar build
uses: actions/upload-artifact@v3
with:
name: BuildFiles
path: |
./build/libs/*.jar
!./build/libs/*-sources.jar
- name: Make publish CFG
run: |
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
- name: Run publish script
run: |
node publish.mjs
- run: echo "🍏 This job's status is ${{ job.status }}."