bevy_full_throttle/.gitea/workflows/release.yml

40 lines
1.2 KiB
YAML
Raw Normal View History

2024-07-06 23:25:59 +00:00
name: Release
2024-07-06 16:42:32 +00:00
on:
2024-07-07 00:02:27 +00:00
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
2024-07-06 23:25:59 +00:00
workflow_dispatch:
2024-07-06 16:42:32 +00:00
jobs:
2024-07-06 23:25:59 +00:00
release:
runs-on: ubuntu-latest
2024-07-06 16:42:32 +00:00
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: install Linux build dependencies
2024-07-06 16:47:21 +00:00
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev libwayland-dev libclang-dev
2024-07-06 16:42:32 +00:00
if: runner.os == 'linux'
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
2024-07-07 14:58:37 +00:00
- name: Publish
2024-07-06 23:25:59 +00:00
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}