Skip to content

Commit

Permalink
chore(maint): add publish CI to crates.io (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
PABannier authored Sep 29, 2024
1 parent 2fa724a commit 60653ea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish
on:
release:
types: [published]

jobs:
publish-on-crates-io-server:
name: Publish on crates.io
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to crates.io
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

- name: Publish to crates.io
run: cargo publish
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
[package]
name = "sparseglm"
version = "0.1.0"
authors = ["Pierre-Antoine Bannier <[email protected]>"]
edition = "2021"
license-file = "LICENSE"
description = "Fast memory-efficient solver for sparse generalized linear models"
repository = "https://github.com/PABannier/sparseglm"
readme = "README.md"
keywords = ["machine", "learning", "data", "linear"]
categories = ["science"]
exclude = ["/.github"]

[dependencies]
ndarray = { version = "0.15", default-features = false, features = ["approx"] }
Expand Down

0 comments on commit 60653ea

Please sign in to comment.