Skip to content

Commit

Permalink
Use cargo release (EmbarkStudios#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle authored Jan 28, 2020
1 parent 777e5cb commit 43ccc6d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,3 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test

publish:
name: Publish
runs-on: ubuntu-latest
needs: [test]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
- name: cargo publish
uses: actions-rs/cargo@v1
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
with:
command: publish
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ 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]
<!-- next-header -->
## [Unreleased] - ReleaseDate
### Added
- [PR#19](https://github.com/EmbarkStudios/spdx/pull/19) Added `ParseMode` enum, which has a `Lax` variant that allows certain invvalid license identifiers found in some crates on crates.io, as well as the invalid `/` expression separator. Thanks [@kornel](https://github.com/kornelski)!

Expand Down Expand Up @@ -57,6 +58,7 @@ a user provided callback
### Added
- Initial add of spdx crate, based primarly on [`license-exprs`](https://github.com/rust-lang-nursery/license-exprs)

<!-- next-url -->
[Unreleased]: https://github.com/EmbarkStudios/spdx/compare/0.3.0...HEAD
[0.3.0]: https://github.com/EmbarkStudios/spdx/compare/0.2.4...0.3.0
[0.2.4]: https://github.com/EmbarkStudios/spdx/compare/0.2.3...0.2.4
Expand Down
11 changes: 11 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pre-release-commit-message = "Release {{version}}"
no-dev-version = true
tag-message = "Release {{version}}"
tag-name = "{{version}}"
pre-release-replacements = [
{ file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" },
{ file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}" },
{ file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}" },
{ file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n## [Unreleased] - ReleaseDate" },
{ file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/EmbarkStudios/spdx/compare/{{tag_name}}...HEAD" },
]

0 comments on commit 43ccc6d

Please sign in to comment.