mikrotik-router-switch/.gitea/workflows/cron.yml
Yezzi Hsueh 071baf8678
All checks were successful
Create Scripts / Build (push) Successful in 2m40s
fix: cache key
2024-02-22 22:11:24 +08:00

31 lines
763 B
YAML

name: Create Scripts
on:
push:
schedule:
- cron: 0 5 * * *
jobs:
Build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Creates
uses: actions/cache@v3
env:
cache-name: cache-create
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
path: ~/.cargo
- name: Setup Cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Create Script
uses: actions-rs/cargo@v1
with:
command: run
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: chn_list.rsc
path: chn_list.rsc