mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/LocalizationData.git
synced 2025-02-06 06:34:30 +08:00
34 lines
924 B
YAML
34 lines
924 B
YAML
name: Check Auto Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
workflow_dispatch:
|
|
jobs:
|
|
auto-release:
|
|
if: github.repository == 'StarCitizenToolBox/LocalizationData'
|
|
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"
|
|
|
|
- name: Setup localization runner tools
|
|
run: cargo install --git https://github.com/StarCitizenToolBox/runner_tools.git --tag v1.0.1 localization
|
|
|
|
- name: Auto Release
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
GH_REPO: ${{ github.repository }}
|
|
run: localization -m auto_release |