29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
name: Lobby Arrakis View Distance
|
|
on:
|
|
push:
|
|
branches: ['ops/lobby-arrakis-view-distance-*']
|
|
workflow_dispatch:
|
|
jobs:
|
|
configuration:
|
|
runs-on: dune-ci
|
|
steps:
|
|
- name: Check out exact revision
|
|
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: Verify and package scoped configuration helper
|
|
run: |
|
|
python3 tools/test_lobby_arrakis_view_distance.py
|
|
mkdir config-artifacts
|
|
cp tools/lobby-arrakis-view-distance.py config-artifacts/
|
|
printf '%s\n' "$GITHUB_SHA" > config-artifacts/SOURCE_COMMIT
|
|
(cd config-artifacts && sha256sum *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Lobby-Arrakis-View-Distance
|
|
path: config-artifacts/
|
|
if-no-files-found: error
|

Staff