Skip to content

Commit

Permalink
build: publish releases to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Lees committed Dec 5, 2019
1 parent a66f5f5 commit 4b5ac95
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,23 @@ jobs:
asset_path: felloe-${{ matrix.target }}.tar.gz
asset_name: felloe-${{ matrix.target }}.tar.gz
asset_content_type: application/x-gzip

publish-crate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: 'true'
- name: Login
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_API_KEY }}
- name: Publish
uses: actions-rs/cargo@v1
with:
command: publish
17 changes: 15 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
[package]
name = "felloe"
description = "Interactive helm version management"
version = "0.1.0"
homepage = "https://github.com/ddlees/felloe"
license = "Apache-2.0 OR MIT"
authors = ["Dillon Lees <[email protected]>"]
readme = "README.md"
keywords = ["helm", "kubernetes", "version", "management", "tiller"]
categories = ["command-line-utilities"]
edition = "2018"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
include = [
"**/*.rs",
"images",
"Cargo.toml",
"Cargo.lock",
"CHANGELOG.md",
"LICENSE",
"README.md"
]

[dependencies]
structopt = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ SUBCOMMANDS:

This work is [dual-licensed](LICENSE) under Apache 2.0 and MIT to help avoid problems using this software or its libraries with GPL2.

`SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later`
`SPDX-License-Identifier: Apache-2.0 OR MIT`


## Attributions
Expand Down

0 comments on commit 4b5ac95

Please sign in to comment.