Skip to content

Commit 6c4ac93

Browse files
authored
Merge pull request #67 from stackhpc/publish-crate
Publish to crates.io on release
2 parents 7fb6883 + 689f408 commit 6c4ac93

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@ env:
77
REGISTRY: ghcr.io
88
IMAGE_NAME: ${{ github.repository }}
99
jobs:
10+
# Adapted from https://pratikpc.medium.com/publishing-crates-using-github-actions-165ee67780e1
11+
publish-crate:
12+
name: Publish crate to crates.io
13+
runs-on: ubuntu-latest
14+
permissions: {}
15+
steps:
16+
- name: Checkout sources
17+
uses: actions/checkout@v3
18+
19+
- name: Install stable toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: 1.66.1
24+
override: true
25+
26+
- name: Publish crate to crates.io
27+
run: cargo publish --token ${CRATES_TOKEN}
28+
env:
29+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
30+
1031
build-and-push-image:
1132
name: Build and publish a Docker image
1233
runs-on: ubuntu-latest

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: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
[package]
22
name = "reductionist"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
# Due to AWS SDK.
66
rust-version = "1.66.1"
7+
license = "Apache-2.0"
8+
description = "S3 Active Storage server"
9+
homepage = "https://crates.io/crates/reductionist"
10+
documentation = "https://docs.rs/reductionist"
11+
repository = "https://github.com/stackhpc/reductionist-rs"
12+
readme = "README.md"
13+
authors = ["Mark Goddard <mark@stackhpc.com>", "Scott Davidson <scott@stackhpc.com>"]
14+
keywords = ["s3", "ndarray"]
15+
# https://crates.io/category_slugs
16+
categories = ["mathematics", "science", "simulation"]
17+
18+
[badges]
19+
maintenance = { status = "actively-developed" }
720

821
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
922

0 commit comments

Comments
 (0)