Skip to content

Commit

Permalink
prepare a new release + publish via github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Sep 27, 2022
1 parent 6f559ed commit 5a13d52
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml

name: Publish releases to GitHub
on:
push:
tags:
- '*'

jobs:
create-release:
if: github.repository_owner == 'sunshowers-code'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
title: debug-ignore $version
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.5.1] - 2022-09-27

### Changed

- Updated repository location.

## [0.5.0] - 2021-01-27

### Changed
Expand All @@ -13,5 +19,8 @@

For information about earlier versions, please review the [commit history](https://github.com/sunshowers-code/partial-io/commits/main).

[0.5.1]: https://github.com/sunshowers-code/partial-io/releases/tag/0.5.1

<!-- older releases are on the facebookincubator repo -->
[0.5.0]: https://github.com/facebookincubator/rust-partial-io/releases/tag/0.5.0
[0.4.0]: https://github.com/facebookincubator/rust-partial-io/releases/tag/0.4.0
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "partial-io"
version = "0.5.0"
version = "0.5.1"
edition = "2018"
authors = ["Rain <[email protected]>"]
authors = ["Rain <[email protected]>"]
description = "Helpers to test partial, interrupted and would-block I/O operations."
documentation = "https://docs.rs/partial-io"
repository = "https://github.com/sunshowers-code/partial-io"
Expand Down

0 comments on commit 5a13d52

Please sign in to comment.