diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4202136..dd5ecb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,10 +13,32 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build - run: cargo build + run: cargo build --release - name: Run tests run: cargo test - name: Publish env: CRATE_IO_ACCESS_TOKEN: ${{ secrets.CRATE_IO_ACCESS_TOKEN }} run: cargo publish --token $CRATE_IO_ACCESS_TOKEN + - name: Create Release Note + run: target/release/kokai release --tag ${{ github.ref }} . > RELEASE_NOTE.md + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body_path: RELEASE_NOTE.md + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./target/release/kokai + asset_name: kokai-linux-x86_64 diff --git a/Cargo.toml b/Cargo.toml index 4625998..f5dc899 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,15 @@ name = "kokai" version = "0.1.0" authors = ["Jones Magloire @Joxit"] +description = "Create changelog for your releases and full changelog for your projects using Conventional Commits." edition = "2018" +license = "MIT" +repository = "https://github.com/Joxit/kokai" +homepage = "https://github.com/Joxit/kokai" +documentation = "https://docs.rs/kokai/" +readme = "README.md" +keywords = ["cli", "release", "changelog", "git", "conventional-commits", "command", "task"] +categories = ["command-line-utilities"] [dependencies] structopt = "^0.3" diff --git a/README.md b/README.md index 784abec..26397a6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 公開: kokai => Release/publish -Kokai allows you to create changelog for your releases and full changelog for your projects. It is based on Conventional Commit (for now) to have a pleasant reading of the changelog. +Kokai allows you to create changelog for your releases and full changelog for your projects. It is based on Conventional Commits (for now) to have a pleasant reading of the changelog. ## All kokai commands diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..a6a6b11 --- /dev/null +++ b/_config.yml @@ -0,0 +1,10 @@ +title: Kokai +description: CLI for your release notes using Conventional Commits. +url: https://joxit.dev/kokai +google_analytics: UA-99119327-1 +remote_theme: joxit/joxit.github.io +author: Jones Magloire +twitter: + username: Joxit +instagram: + username: jox.it