39 lines
1.0 KiB
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:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout runner_tools
uses: actions/checkout@v4
with:
repository: StarCitizenToolBox/runner_tools
path: runner_tools
ref: v1.0.0
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "runner_tools/localization"
cache-all-crates: true
prefix-key: "rs_cache"
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
shared-key: "share"
2024-11-28 17:41:44 +08:00
- name: Setup localization runner tools
2024-11-28 17:54:05 +08:00
run: cargo install --path ./runner_tools/localization --locked
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