Skip to content

Commit

Permalink
Add an action to do cargo publish on release, bump version to 0.4.1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon authored May 20, 2021
1 parent ad82452 commit 8a58c32
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/cargo-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to crates.io

on:
# Triggered when we tag a release (including a prerelease)
release:
types: [published]

jobs:
cargo-publish:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
target: i686-unknown-linux-gnu
# This overwrites the default toolchain with the toolchain specified above.
override: true
- name: Cargo login
run: cargo login ${{ secrets.CI_CARGO_LOGIN }}
- name: Cargo publish
run: cargo publish
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.4.1 (2021-05-20)
===

Misc
---
* Upgrade the Rust version we use to nightly-2021-05-12 (1.54.0-nightly).

0.4.0 (2021-05-14)
===

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mmtk"
version = "0.4.0"
version = "0.4.1"
authors = ["The MMTk Developers <>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down

0 comments on commit 8a58c32

Please sign in to comment.