Skip to content

Commit c826b9b

Browse files
feat: publish crates on CI (#714)
1 parent bce6175 commit c826b9b

File tree

2 files changed

+51
-15
lines changed

2 files changed

+51
-15
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: reflexo::crates::publish
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
workflow_dispatch:
7+
8+
env:
9+
RUSTFLAGS: '-Dwarnings'
10+
11+
jobs:
12+
publish-crates:
13+
name: build
14+
runs-on: ubuntu-latest
15+
env:
16+
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
# https://github.com/dtolnay/rust-toolchain/issues/133
22+
# https://github.com/rust-lang/rustup/issues/3635
23+
# Only needed if your action will run two or more rust
24+
# commands concurrently, otherwise rustup will lazily
25+
# install your rust-toolchain.toml when needed:
26+
- name: 'Install from rust-toolchain.toml'
27+
run: rustup show
28+
- name: Install llvm
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install llvm
32+
- name: Publish crates
33+
run: |
34+
cargo publish --no-verify -p reflexo || true
35+
cargo publish --no-verify -p reflexo-typst2vec || true
36+
cargo publish --no-verify -p reflexo-vec2bbox || true
37+
cargo publish --no-verify -p reflexo-vec2canvas || true
38+
cargo publish --no-verify -p reflexo-vec2sema || true
39+
cargo publish --no-verify -p reflexo-vec2svg || true
40+
cargo publish --no-verify -p reflexo-vec2dom || true
41+
cargo publish --no-verify -p reflexo-typst || true
42+
- name: Verify crate health (Optional)
43+
run: |
44+
cargo publish --dry-run -p reflexo || true
45+
cargo publish --dry-run -p reflexo-typst2vec --features no-content-hint || true
46+
cargo publish --dry-run -p reflexo-vec2bbox || true
47+
cargo publish --dry-run -p reflexo-vec2canvas || true
48+
cargo publish --dry-run -p reflexo-vec2sema || true
49+
cargo publish --dry-run -p reflexo-vec2svg --features no-content-hint || true
50+
cargo publish --dry-run -p reflexo-vec2dom --features no-content-hint || true
51+
cargo publish --dry-run -p reflexo-typst --features no-content-hint || true

scripts/publish.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)