Skip to content

Commit 412afd9

Browse files
committed
Merge branch 'feature/CI-publish'
# Conflicts: # .github/workflows/ci.yml
2 parents 7fa4dab + f1d2b6e commit 412afd9

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
tags:
4+
- '*'
5+
workflow_dispatch:
6+
7+
name: Publish
8+
9+
jobs:
10+
publish:
11+
name: Publish
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
17+
- name: Cache
18+
uses: actions/cache@v3
19+
with:
20+
path: |
21+
~/.cargo/bin/
22+
~/.cargo/registry/index/
23+
~/.cargo/registry/cache/
24+
~/.cargo/git/db/
25+
target/
26+
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
27+
28+
- name: Install stable toolchain
29+
uses: dtolnay/rust-toolchain@stable
30+
31+
- name: Install Dependencies
32+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
33+
34+
- name: Run cargo test
35+
run: cargo test --lib --verbose
36+
37+
- run: cargo publish --token ${CRATES_TOKEN}
38+
env:
39+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
40+

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
<code>bevy_vox_scene</code>
33
</h1>
44

5-
65
<a href="https://crates.io/crates/bevy_vox_scene">
76
<img height="24" src="https://img.shields.io/crates/v/bevy_vox_scene?style=for-the-badge"/>
87
</a>
98

9+
[![CI](https://github.com/Utsira/bevy_vox_scene/actions/workflows/ci.yml/badge.svg)](https://github.com/Utsira/bevy_vox_scene/actions/workflows/ci.yml)
10+
1011
A plugin for [the Bevy Engine](https://bevyengine.org) which allows loading [Magica Voxel](https://ephtracy.github.io) `.vox` files directly into a Bevy scene graph.
1112
`bevy_vox_scene` is forked from the excellent [`bevy_vox_mesh` crate](https://crates.io/crates/bevy_vox_mesh).
1213

@@ -87,7 +88,7 @@ TLDR: split up models containing glass voxels into convex chunks using Magica Vo
8788

8889
## Developing `bevy_vox_scene`
8990

90-
After cloning this repo, use Cargo run the unit tests:
91+
After cloning this repo, use Cargo to run the unit tests:
9192

9293
```
9394
cargo test --lib

0 commit comments

Comments
 (0)