From 258ce1ade1125f039bb72e18f3c8295d48e2fcbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kriv=C3=A1cs=20Schr=C3=B8der?= Date: Sun, 24 Jul 2022 14:43:13 +0200 Subject: [PATCH] Publish v0.1.1 --- .github/workflows/Publish.yml | 18 +++++++++++++++++- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- README.md | 2 +- 4 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 570bc47..b07249e 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -6,7 +6,7 @@ on: - "v*" jobs: - test: + publish: name: Publish runs-on: ubuntu-latest steps: @@ -27,3 +27,19 @@ jobs: with: command: publish args: --verbose --all-features + + - name: Set Environment Variables + run: | + echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + echo "NO_PREFIX_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + + - name: Create GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: https://crates.io/crates/nombytes/${{ env.NO_PREFIX_VERSION }} + draft: false + prerelease: false diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..3112908 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.1.1] - 2022-07-24 + +### Added ✨ + +- Added `serde` support + +### Changed 🔧 + +- Updated README description +- Removed unnecessary cloning where possible + +### Fixed 🐛 + +- Fixed minor typo in README + +## [0.1.0] - 2022-07-23 + +### Added ✨ + +- Project setup +- First release + +[0.1.1]: https://github.com/alexschrod/nombytes/compare/v0.1...v0.1.1 +[0.1.0]: https://github.com/alexschrod/nombytes/releases/tag/v0.1 diff --git a/Cargo.toml b/Cargo.toml index a0c1ca2..51e657c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nombytes" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "A library that provides a wrapper for the bytes::Bytes byte container for use with nom" license = "Apache-2.0 OR MIT" diff --git a/README.md b/README.md index 888563c..16e0d2c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Put this in your `Cargo.toml`: ```toml [dependencies] -nombytes = "0.1" +nombytes = "0.1.1" ``` ## Features