33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
name: Default Voice Permissions Operations Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['ops/default-player-voice-permissions-*']
|
|
|
|
jobs:
|
|
default-voice-permissions:
|
|
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
|
|
- name: Validate and package the scoped LuckPerms operation
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
python3 tools/test_default_voice_permissions.py -v
|
|
mkdir default-voice-artifacts
|
|
cp tools/{set-default-voice-permissions,allow-giedi-nether-pearl}.py default-voice-artifacts/
|
|
printf '%s\n' "$(git rev-parse HEAD)" > default-voice-artifacts/SOURCE_COMMIT
|
|
(cd default-voice-artifacts && sha256sum -- *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Default-Voice-Permissions
|
|
path: default-voice-artifacts/
|
|
if-no-files-found: error
|

Staff