plugins/.forgejo/workflows/dune-staff.yml
unimatrixgit 0330ec9653
All checks were successful
DuneStaff Build / dune-staff (push) Successful in 1m42s
DuneRealms Plugin CI / plugins (push) Successful in 10m43s
Pin and build the Tweaks & Ladders staff consolidation candidate
2026-12-04 22:44:58 +01:00

40 lines
1.4 KiB
YAML

name: DuneStaff Build
on:
workflow_dispatch:
push:
branches: ['feat/staff-tools-*', 'feat/tweaks-ladders-staff-*']
jobs:
dune-staff:
runs-on: dune-ci
steps:
- name: Check out exact revision
shell: bash
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
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/plugins.git "$GITHUB_SHA"
git checkout --detach FETCH_HEAD
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '9.2.1'
- name: Build staff plugin and run its tests
shell: bash
run: |
set -euo pipefail
gradle --no-daemon -p DuneStaff build
mkdir dune-staff-artifacts
cp DuneStaff/build/libs/DuneStaff.jar dune-staff-artifacts/
printf '%s\n' "$(git rev-parse HEAD)" > dune-staff-artifacts/SOURCE_COMMIT
(cd dune-staff-artifacts && sha256sum -- DuneStaff.jar SOURCE_COMMIT > SHA256SUMS)
- uses: actions/upload-artifact@v3
with:
name: DuneRealms-DuneStaff
path: dune-staff-artifacts/
if-no-files-found: error