diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index d04fa11..3bb4335 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -38,10 +38,18 @@ jobs: - name: Update Cargo.lock run: cargo update --workspace + - name: Update changelog + uses: thomaseizinger/keep-a-changelog-new-release@v1 + with: + version: ${{ github.event.inputs.version }} + - name: Commit changelog and manifest files id: make-commit run: | - git add Cargo.lock daemon/Cargo.toml + curl -fsSL https://dprint.dev/install.sh | sh + /home/runner/.dprint/bin/dprint fmt + + git add Cargo.lock daemon/Cargo.toml CHANGELOG.md git commit --message "Prepare release ${{ github.event.inputs.version }}" echo "::set-output name=commit::$(git rev-parse HEAD)" @@ -55,7 +63,7 @@ jobs: Hi @${{ github.actor }}! This PR was created in response to a manual trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}. I've bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.commit }}. - Merging this PR will create a GitHub release and publish the library to crates.io! + Merging this PR will create a GitHub release! EOF ) gh pr create \ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8d541a5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# 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.3.0] - 2021-12-09 + +Initial release for mainnet. + +[Unreleased]: https://github.com/itchysats/itchysats/compare/0.3.0...HEAD +[0.3.0]: https://github.com/itchysats/itchysats/compare/d12e04d4954deb2ee9ebdc9...0.3.0