diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88506fb..5abda53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,25 +5,28 @@ on: tags: - "v*" +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: -D warnings + RUST_BACKTRACE: 1 + +defaults: + run: + shell: bash + jobs: create-release: if: github.repository_owner == 'taiki-e' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: taiki-e/github-actions/install-rust@main + with: + toolchain: stable + - run: cargo package - uses: taiki-e/github-actions/create-release@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - publish: - if: github.repository_owner == 'taiki-e' - needs: - - create-release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: taiki-e/github-actions/install-rust@main - - run: | - cargo publish + - run: cargo publish env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index bbb7797..b46403a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org). + + ## [Unreleased] +## [0.4.5] - 2021-01-05 + +- Exclude unneeded files from crates.io. + ## [0.4.4] - 2020-11-02 - [Accept `const_fn` attribute with no arguments and functions without `const` keyword.](https://github.com/taiki-e/const_fn/pull/34) @@ -120,7 +128,8 @@ This project adheres to [Semantic Versioning](https://semver.org). Initial release -[Unreleased]: https://github.com/taiki-e/const_fn/compare/v0.4.4...HEAD +[Unreleased]: https://github.com/taiki-e/const_fn/compare/v0.4.5...HEAD +[0.4.5]: https://github.com/taiki-e/const_fn/compare/v0.4.4...v0.4.5 [0.4.4]: https://github.com/taiki-e/const_fn/compare/v0.4.3...v0.4.4 [0.4.3]: https://github.com/taiki-e/const_fn/compare/v0.4.2...v0.4.3 [0.4.2]: https://github.com/taiki-e/const_fn/compare/v0.4.1...v0.4.2 diff --git a/Cargo.toml b/Cargo.toml index ba20f5b..0eb136f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "const_fn" -version = "0.4.4" +version = "0.4.5" authors = ["Taiki Endo "] edition = "2018" license = "Apache-2.0 OR MIT"