34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
name: Sigma Ore Palette Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['fix/sigma-native-ore-palette-*']
|
|
|
|
jobs:
|
|
sigma-ore-palette:
|
|
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 three Sigma biomes
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
python3 tools/test_planet_ore_release.py
|
|
mkdir sigma-ore-artifacts
|
|
cp DuneTerrain/planet-datapacks/sigma_draconis_iv/data/minecraft/worldgen/biome/{badlands,eroded_badlands,sulfur_caves}.json sigma-ore-artifacts/
|
|
cp tools/{planet_ore_release,reset-planet-ores,reset-sigma-ore-pack}.py sigma-ore-artifacts/
|
|
printf '%s\n' "$(git rev-parse HEAD)" > sigma-ore-artifacts/SOURCE_COMMIT
|
|
(cd sigma-ore-artifacts && sha256sum -- *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Sigma-Ore-Palette
|
|
path: sigma-ore-artifacts/
|
|
if-no-files-found: error
|

Staff