Skip to content

Commit bc23088

Browse files
committed
chore(cd): add release workflow
1 parent 8b582f3 commit bc23088

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

.github/workflows/cd.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Continuous Deployment
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
publish:
12+
name: Publish crates
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y \
22+
--no-install-recommends \
23+
--allow-unauthenticated \
24+
libasound2-dev
25+
26+
- name: Setup Rust
27+
uses: esp-rs/xtensa-toolchain@v1.5
28+
with:
29+
default: true
30+
buildtargets: esp32
31+
ldproxy: true
32+
33+
- name: Enable caching
34+
uses: Swatinem/rust-cache@v2
35+
36+
- name: Publish crates
37+
env:
38+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
39+
run: |
40+
cargo publish -p ratatui-fretboard
41+
cargo publish -p tuitar-core
42+
cargo publish -p tuitar
43+
cargo publish -p firmware

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ repository = "https://github.com/orhun/tuitar"
1515
rust-version = "1.77"
1616

1717
[workspace.dependencies]
18-
tuitar-core = { path = "tuitar-core" }
18+
tuitar-core = { path = "tuitar-core", version = "0.1.0-rc.0" }
19+
ratatui-fretboard = { path = "ratatui-fretboard", version = "0.2.0" }
20+
1921
ratatui = { version = "0.29.0", default-features = false }
2022
tui-big-text = "=0.7.0"
2123
pitchy = "0.1.1"
22-
ratatui-fretboard = { path = "ratatui-fretboard" }
2324
log = "0.4"
2425

2526
[profile.release]

0 commit comments

Comments
 (0)