Skip to content

Commit

Permalink
Merge pull request #67 from stackhpc/publish-crate
Browse files Browse the repository at this point in the history
Publish to crates.io on release
  • Loading branch information
markgoddard authored Aug 3, 2023
2 parents 7fb6883 + 689f408 commit 6c4ac93
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
# Adapted from https://pratikpc.medium.com/publishing-crates-using-github-actions-165ee67780e1
publish-crate:
name: Publish crate to crates.io
runs-on: ubuntu-latest
permissions: {}
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.66.1
override: true

- name: Publish crate to crates.io
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

build-and-push-image:
name: Build and publish a Docker image
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
[package]
name = "reductionist"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
# Due to AWS SDK.
rust-version = "1.66.1"
license = "Apache-2.0"
description = "S3 Active Storage server"
homepage = "https://crates.io/crates/reductionist"
documentation = "https://docs.rs/reductionist"
repository = "https://github.com/stackhpc/reductionist-rs"
readme = "README.md"
authors = ["Mark Goddard <[email protected]>", "Scott Davidson <[email protected]>"]
keywords = ["s3", "ndarray"]
# https://crates.io/category_slugs
categories = ["mathematics", "science", "simulation"]

[badges]
maintenance = { status = "actively-developed" }

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

Expand Down

0 comments on commit 6c4ac93

Please sign in to comment.