Skip to content

Commit

Permalink
preparing release
Browse files Browse the repository at this point in the history
  • Loading branch information
softberries committed May 20, 2024
1 parent 7426d51 commit ed2e703
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish Crate

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

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

- name: Cache cargo registry
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v2
with:
path: ~/.cargo/index
key: ${{ runner.os }}-cargo-index
restore-keys: |
${{ runner.os }}-cargo-index
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build
- name: Build the crate
run: cargo build --release

- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo publish --token $CARGO_REGISTRY_TOKEN
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ name = "s3tui"
version = "0.1.0"
authors = ["Krzysztof Grajek <[email protected]>"]
edition = "2021"
description = "Simple TUI application for multiple s3 accounts operations"
description = "Simple TUI application for multiple s3 account operations"
license = "MIT"
repository = "https://github.com/softberries/s3tui"
homepage = "https://github.com/softberries/s3tui"
readme = "README.md"
keywords = ["s3", "aws", "ratatui", "tui", "softwaremill"]
categories = ["command-line-utilities", "asynchronous"]
documentation = "https://docs.rs/s3tui"

[dependencies]
better-panic = "0.3.0"
Expand Down

0 comments on commit ed2e703

Please sign in to comment.