fix typo #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-doc-and-samples | |
on: | |
push: | |
branches: '*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
regenerate-samples: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-unknown-linux-gnu | |
override: true | |
- name: Build with Cargo | |
run: cargo build --release --target=x86_64-unknown-linux-gnu | |
working-directory: settings-parser | |
- name: Parse doc example | |
run: > | |
cargo run --release -- | |
"../doc/mod-menu.xml" | |
-o="../doc/mod-menu.ws" | |
working-directory: settings-parser | |
- name: Parse DifficultyMod sample | |
run: > | |
cargo run --release -- | |
"../samples/DifficultyMod/bin/config/r4game/user_config_matrix/pc/SampleDifficultyMod.xml" | |
-o="../samples/DifficultyMod/Mods/modSampleDifficultyMod/content/scripts/local/difficulty_mod_base.ws" | |
--no-getter | |
working-directory: settings-parser | |
- name: Parse MonsterOfTheWeek sample | |
run: > | |
cargo run --release -- | |
"../samples/MonsterOfTheWeek/bin/config/r4game/user_config_matrix/pc/SampleMonsterOfTheWeek.xml" | |
-o="../samples/MonsterOfTheWeek/Mods/modSampleMonsterOfTheWeek/content/scripts/local/monster_of_the_week_settings.ws" | |
working-directory: settings-parser | |
- name: CLI specification | |
run: | | |
echo '```' > "../doc/cli_specification.md" | |
cargo run --release -- -h >> "../doc/cli_specification.md" | |
echo '```' >> "../doc/cli_specification.md" | |
working-directory: settings-parser | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Update doc and samples" | |