Route legacy Towny plot writes through organisation keys
This commit is contained in:
parent
5d727d7f59
commit
130520ff1f
1 changed files with 46 additions and 1 deletions
40
.forgejo/workflows/native-plot-command.yml
Normal file
40
.forgejo/workflows/native-plot-command.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: Native Plot Command Policy Build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ['fix/native-plot-command-policy-*']
|
||||
|
||||
jobs:
|
||||
native-plot-command:
|
||||
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 the exact command policy class
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
gradle --no-daemon -p JarvisConnector test --tests com.dunerealms.jarvis.NativeCommandPolicyTest
|
||||
mkdir native-plot-command-artifacts
|
||||
cp JarvisConnector/build/classes/java/main/com/dunerealms/jarvis/NativeCommandPolicy.class native-plot-command-artifacts/
|
||||
printf '%s\n' "$(git rev-parse HEAD)" > native-plot-command-artifacts/SOURCE_COMMIT
|
||||
(cd native-plot-command-artifacts && sha256sum -- NativeCommandPolicy.class SOURCE_COMMIT > SHA256SUMS)
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: DuneRealms-Native-Plot-Command-Policy
|
||||
path: native-plot-command-artifacts/
|
||||
if-no-files-found: error
|
||||
Loading…
Reference in a new issue

Staff