forked from unimatrix/web
Add receipt-bound native kit delivery and Paper metadata verification
This commit is contained in:
parent
eccff352da
commit
99b4c89ee9
1 changed files with 909 additions and 1 deletions
41
.forgejo/workflows/kit-delivery.yml
Normal file
41
.forgejo/workflows/kit-delivery.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
name: DuneRealms Kit Delivery CI
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev/kit-atelier-v3]
|
||||
paths:
|
||||
- 'DuneKits/**'
|
||||
- 'network/server-control/kit*'
|
||||
- 'network/server-control/player_kits.py'
|
||||
- '.forgejo/workflows/kit-delivery.yml'
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
kits:
|
||||
runs-on: dune-ci
|
||||
steps:
|
||||
- name: Checkout
|
||||
shell: bash
|
||||
env:
|
||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git init .
|
||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/MC.git "$GITHUB_SHA"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Install Java 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
- name: Install Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
gradle-version: '9.2.1'
|
||||
- name: Verify bridge and build native kit items
|
||||
run: |
|
||||
python3 -m unittest discover -s network/server-control -p 'test_kit_equipment.py' -v
|
||||
gradle --no-daemon -p DuneKits test jar
|
||||
- name: Upload verified kit plugin
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: DuneKits
|
||||
path: DuneKits/build/libs/DuneKits-3.0.0.jar
|
||||
if-no-files-found: error
|
||||
Loading…
Reference in a new issue

Staff