34 lines
924 B
YAML
Raw Normal View History

2024-11-28 17:10:46 +08:00
name: Check Auto Release
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
auto-release:
2024-11-28 18:28:26 +08:00
if: github.repository == 'StarCitizenToolBox/LocalizationData'
2024-11-28 17:10:46 +08:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
prefix-key: "rs_cache"
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
shared-key: "share"
2024-11-28 18:04:10 +08:00
2024-11-28 17:41:44 +08:00
- name: Setup localization runner tools
2024-12-04 15:03:14 +08:00
run: cargo install --git https://github.com/StarCitizenToolBox/runner_tools.git --tag v1.0.1 localization
2024-11-28 18:04:10 +08:00
2024-11-28 17:10:46 +08:00
- name: Auto Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
2024-11-28 17:41:44 +08:00
run: localization -m auto_release