Skip to content

Commit 17bc646

Browse files
committed
chore(ci): setup binary build
2 parents f7c57e3 + d962d62 commit 17bc646

File tree

8 files changed

+39
-12
lines changed

8 files changed

+39
-12
lines changed

.github/workflows/bin.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ env:
2323
RUSTFLAGS: -D warnings
2424
RUSTUP_MAX_RETRIES: 10
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
28+
cancel-in-progress: false
29+
2630
jobs:
2731
build:
2832
name: ${{ matrix.target }}
@@ -88,6 +92,7 @@ jobs:
8892
features: rustdoc-link
8993
tar: unix
9094
zip: windows
95+
codesign: true
9196
token: ${{ secrets.GITHUB_TOKEN }}
9297
dry-run: ${{ github.event_name != 'release' }}
9398

@@ -99,6 +104,7 @@ jobs:
99104
features: link-forever
100105
tar: unix
101106
zip: windows
107+
codesign: true
102108
token: ${{ secrets.GITHUB_TOKEN }}
103109
dry-run: ${{ github.event_name != 'release' }}
104110

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ jobs:
7171
RUST_LOG: info
7272

7373
- name: Evict cache
74-
run: gh cache delete '${{ steps.cache-key.outputs.CACHE_KEY }}' || true
74+
run: gh cache delete '${{ steps.cache-key.outputs.CACHE_KEY }}'
7575
if: steps.cache-restore.outputs.cache-hit
76+
continue-on-error: true
7677
env:
7778
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7879

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
pull_request:
9+
branches:
10+
- main
11+
812
release:
913
types:
1014
- published
@@ -72,6 +76,7 @@ jobs:
7276
path: docs/dist
7377

7478
deploy:
79+
name: Deploy
7580
runs-on: ubuntu-latest
7681

7782
needs: build

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/mdbookkit/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
6+
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [1.0.0](https://tonywu6.github.com/tonywu6/mdbookkit/releases/tag/mdbookkit-v1.0.0) - 2025-04-03
11+
12+
Initial release.

crates/mdbookkit/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
[package]
22
name = "mdbookkit"
33
publish = true
4-
version = "0.1.0"
4+
version = "1.0.0"
5+
6+
edition.workspace = true
7+
rust-version.workspace = true
58

69
authors.workspace = true
7-
description = "Toolkit for mdBook."
810
license.workspace = true
9-
readme = "README.md"
1011
repository.workspace = true
1112

12-
edition.workspace = true
13-
rust-version.workspace = true
13+
categories = ["command-line-utilities"]
14+
description = "toolkit for mdBook 📖"
15+
documentation = "https://tonywu6.github.io/mdbookkit/"
16+
keywords = ["mdbook", "documentation", "rust-analyzer", "lsp", "permalink"]
17+
readme = "README.md"
1418

1519
autobins = false
1620
autotests = false
@@ -109,7 +113,6 @@ common-cli = ["dep:clap", "dep:mdbook", "dep:toml"]
109113
default = []
110114

111115
# aliases
112-
113116
mdbook-link-forever = ["link-forever"]
114117
mdbook-rustdoc-link = ["rustdoc-link"]
115118

crates/mdbookkit/tests/snaps/link_forever/README.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ expression: output
77
![mdbookkit hero image](https://github.com/lorem/ipsum/tree/dolor/docs/src/media/banner.webp)
88

99
[![crates.io](https://img.shields.io/crates/v/mdbookkit?style=flat-square)](https://crates.io/crates/mdbookkit)
10-
[![documentation](https://img.shields.io/docsrs/mdbookkit?style=flat-square&label=docs.rs)](https://docs.rs/mdbookkit)
10+
[![documentation](https://img.shields.io/github/actions/workflow/status/tonywu6/mdbookkit/docs.yml?branch=main&event=release&style=flat-square&label=docs)](https://docs.rs/mdbookkit)
1111
[![MIT/Apache-2.0 licensed](https://img.shields.io/crates/l/mdbookkit?style=flat-square)](https://github.com/lorem/ipsum/tree/dolor/LICENSE-APACHE.md)
1212

1313
Quality-of-life plugins for your [mdBook] project.

crates/mdbookkit/tests/snaps/link_forever/_stderr.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ expression: report
77
4
88
5 │ [![crates.io](https://img.shields.io/crates/v/mdbookkit?style=flat-square)](https://crates.io/crates/mdbookkit)
99
· ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
10-
6 │ [![documentation](https://img.shields.io/docsrs/mdbookkit?style=flat-square&label=docs.rs)](https://docs.rs/mdbookkit)
11-
· ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
10+
6 │ [![documentation](https://img.shields.io/github/actions/workflow/status/tonywu6/mdbookkit/docs.yml?branch=main&event=release&style=flat-square&label=docs)](https://docs.rs/mdbookkit)
11+
· ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1212
7 │ [![MIT/Apache-2.0 licensed](https://img.shields.io/crates/l/mdbookkit?style=flat-square)](/LICENSE-APACHE.md)
1313
· ───────────────────────────────────────────────────────────────────────────────────────
1414
8
@@ -40,7 +40,7 @@ expression: report
4040
· ╰── https://github.com/lorem/ipsum/tree/dolor/docs/src/media/banner.webp
4141
4 │
4242
5 │ [![crates.io](https://img.shields.io/crates/v/mdbookkit?style=flat-square)](https://crates.io/crates/mdbookkit)
43-
6 │ [![documentation](https://img.shields.io/docsrs/mdbookkit?style=flat-square&label=docs.rs)](https://docs.rs/mdbookkit)
43+
6 │ [![documentation](https://img.shields.io/github/actions/workflow/status/tonywu6/mdbookkit/docs.yml?branch=main&event=release&style=flat-square&label=docs)](https://docs.rs/mdbookkit)
4444
7 │ [![MIT/Apache-2.0 licensed](https://img.shields.io/crates/l/mdbookkit?style=flat-square)](/LICENSE-APACHE.md)
4545
· ──────────────────────────────────────────────────────┬──────────────────────────────────────────────────────
4646
· ╰── https://github.com/lorem/ipsum/tree/dolor/LICENSE-APACHE.md

0 commit comments

Comments
 (0)