Skip to content

Commit e32f7b9

Browse files
authored
Merge pull request #118 from EspressoSystems/feat/publish
Prepare for crate publishing
2 parents 5795375 + 98bb736 commit e32f7b9

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,22 @@ name: Ubuntu build
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- main
7+
tags:
8+
- v*.*.*
79
pull_request:
810
branches:
9-
- 'main'
11+
- main
1012
- '*/*'
1113
- 'update_flake_lock_action'
1214
schedule:
1315
- cron: '0 0 * * 1'
1416
workflow_dispatch:
1517

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1622
jobs:
1723
build:
1824
strategy:
@@ -45,4 +51,20 @@ jobs:
4551
4652
- name: Lint
4753
run: |
48-
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
54+
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
55+
56+
publish:
57+
needs:
58+
- build
59+
runs-on: ubuntu-latest
60+
env:
61+
RUST_LOG: info
62+
RUSTFLAGS: "--cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\""
63+
steps:
64+
- uses: actions/checkout@v4
65+
- uses: katyo/publish-crates@v2
66+
with:
67+
# Only do an actual publish if this is a push to a release tag. Otherwise, do a dry run.
68+
dry-run: ${{ !(github.event_name == 'push' && github.ref_type == 'tag') }}
69+
ignore-unpublished-changes: true
70+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "async-compatibility-layer"
33
description = "an abstraction layer for using both async-std and tokio"
4-
version = "1.0.0"
4+
version = "1.1.0"
55
edition = "2021"
66

77
[features]

0 commit comments

Comments
 (0)