Skip to content

Commit d309ecd

Browse files
authored
Merge pull request #119 from semiotic-ai/cargo_publish
Cargo publish
2 parents 2e99fb3 + 9f0a03d commit d309ecd

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

.github/workflows/release_please.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,32 @@ name: release-please
1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
15+
outputs:
16+
releases_created: ${{ steps.release-please.outputs.releases_created }}
1517
steps:
16-
- uses: google-github-actions/release-please-action@v3
18+
- name: Generate token
19+
id: generate_token
20+
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 #v1.8.0
21+
with:
22+
app_id: ${{ secrets.PR_AUTOMATION_APP_ID }}
23+
private_key: ${{ secrets.PR_AUTOMATION_APP_PEM }}
24+
- name: Release please
25+
id: release-please
26+
uses: google-github-actions/release-please-action@8016a6649226f2ec88ed05441c11bb5410a22d29 #v3.7.10
1727
with:
1828
command: manifest
29+
token: ${{ steps.generate_token.outputs.token }}
30+
31+
publish-crates:
32+
runs-on: ubuntu-latest
33+
# run only if release-please had released a new version
34+
needs: release-please
35+
if: needs.release-please.outputs.releases_created == 'true'
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Install cargo-workspaces
39+
run: cargo install cargo-workspaces
40+
- name: Publish workspace crates
41+
run: cargo workspaces publish --from-git -y
42+
env:
43+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

tap_aggregator/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
edition.workspace = true
55
license.workspace = true
66
readme = "README.md"
7+
description = "A JSON-RPC service for the Timeline Aggregation Protocol that lets clients request an aggregate receipt from a list of individual receipts."
78

89
[[bin]]
910
name = "tap_aggregator"

tap_core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name="tap_core"
33
version = "0.1.0"
44
edition.workspace = true
55
license.workspace = true
6+
description = "Core Timeline Aggregation Protocol library: a fast, efficient and trustless unidirectional micro-payments system."
67

78
[dependencies]
89
primitive-types={version="0.12.1", features=["serde"]}

tap_integration_tests/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ version = "0.1.0"
44
edition.workspace = true
55
license.workspace = true
66
autotests = false
7+
description = "Integration tests for the Timeline Aggregation Protocol."
8+
publish = false
79

810
[dependencies]
911
tap_aggregator = { path = "../tap_aggregator" }

0 commit comments

Comments
 (0)