Skip to content

Commit 0eb2748

Browse files
ci: publish crates on on tag push
1 parent 593b2e6 commit 0eb2748

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/publish.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "**"
7+
8+
jobs:
9+
lint:
10+
if: github.ref == 'refs/heads/main' && github.actor == 'bot-anik'
11+
uses: ./.github/workflows/lint.yml
12+
13+
build:
14+
if: github.ref == 'refs/heads/main' && github.actor == 'bot-anik'
15+
uses: ./.github/workflows/build.yml
16+
17+
test:
18+
if: github.ref == 'refs/heads/main' && github.actor == 'bot-anik'
19+
uses: ./.github/workflows/test.yml
20+
21+
perform-publish:
22+
if: github.ref == 'refs/heads/main' && github.actor == 'bot-anik'
23+
needs:
24+
- lint
25+
- build
26+
- test
27+
runs-on: ubuntu-22.04
28+
steps:
29+
- name: Check out repository
30+
uses: actions/checkout@v4
31+
with:
32+
token: ${{ secrets.OPS_TOKEN }}
33+
34+
- name: Setup rust
35+
uses: actions-rs/toolchain@v1
36+
with:
37+
toolchain: 1.75
38+
default: true
39+
override: true
40+
41+
- name: Setup cmake
42+
uses: jwlawson/actions-setup-cmake@v2
43+
with:
44+
cmake-version: "3.29.0"
45+
46+
- name: Cargo install smart-release
47+
run: cargo install cargo-smart-release
48+
49+
- name: Publish crates to crates.io
50+
env:
51+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
52+
run: |
53+
cargo smart-release --execute --update-crates-index --no-push --no-changelog --no-changelog-github-release \
54+
axone-rdf \
55+
axone-wasm \
56+
axone-objectarium-client \
57+
axone-logic-bindings \
58+
axone-cognitarium-client \
59+
axone-objectarium \
60+
axone-cognitarium \
61+
axone-law-stone \
62+
axone-dataverse

0 commit comments

Comments
 (0)