Skip to content

Commit

Permalink
Release v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Jan 24, 2021
1 parent 1f82a57 commit 4349ecc
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 13 deletions.
49 changes: 47 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ jobs:
ATCODER_USERNAME: ${{ secrets.ATCODER_USERNAME }}
ATCODER_PASSWORD: ${{ secrets.ATCODER_PASSWORD }}

upload:
upload-archives:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -304,10 +304,48 @@ jobs:
name: assets
path: ${{ steps.asset.outputs.asset }}

upload-release-notes:
name: Upload the release notes
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Prepare release notes
run: |
with open('./CHANGELOG.md') as file:
changelog = file.read()
output = ''
inside_subsection = False
for line in changelog.splitlines():
is_h2 = line.startswith('## ')
if not inside_subsection and is_h2:
inside_subsection = True
elif inside_subsection and not is_h2:
output += line + '\n'
elif inside_subsection:
break
with open('./release-notes.md', 'w') as file:
file.write(output)
shell: python

- name: Upload the release notes
uses: actions/upload-artifact@v2
with:
name: release-notes
path: release-notes.md

release:
name: GitHub Release
runs-on: ubuntu-20.04
needs: [rustfmt, build, upload]
needs: [rustfmt, build, upload-archives, upload-release-notes]

steps:
- name: Download the assets
Expand All @@ -316,9 +354,16 @@ jobs:
name: assets
path: ./assets

- name: Download the release notes
uses: actions/download-artifact@v2
with:
name: release-notes
path: .

- name: GH Release
uses: softprops/action-gh-release@v1
with:
body_path: ./release-notes.md
files: ./assets/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Changelog

## [Unreleased]
## [0.8.0] - 2021-01-24Z

### Added

- Added `add` command.
- Added `add` command. ([#114](https://github.com/qryxip/cargo-compete/pull/114))

```toml
# for Library-Checker
Expand Down Expand Up @@ -65,14 +65,14 @@

### Changed

- Made `package.metadata.cargo-compete.config` optional.
- Made `package.metadata.cargo-compete.config` optional. ([#112](https://github.com/qryxip/cargo-compete/pull/112))

```diff
[package.metadata.cargo-compete]
-config = "../compete.toml"
```

- Added new formats for `package.metadata.cargo-compete.bin`.
- Added new formats for `package.metadata.cargo-compete.bin`. ([#113](https://github.com/qryxip/cargo-compete/pull/113))

```toml
[package.metadata.cargo-compete.bin]
Expand All @@ -90,7 +90,7 @@

### Fixed

- Fixed a problem about hyphen-separated contest IDs.
- Fixed a problem about hyphen-separated contest IDs. ([#114](https://github.com/qryxip/cargo-compete/pull/114))

## [0.7.1] - 2021-01-21Z

Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-compete"
version = "0.7.1"
version = "0.8.0"
authors = ["Ryo Yamashita <qryxip@gmail.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -43,7 +43,7 @@ prettytable-rs = "0.8.0"
reqwest = { version = "0.11.0", default-features = false, features = ["blocking"] }
rpassword = "5.0.1"
rprompt = "1.0.5"
serde = { version = "1.0.120", features = ["derive"] }
serde = { version = "1.0.121", features = ["derive"] }
serde_ignored = "0.1.2"
serde_json = "1.0.61"
serde_yaml = "0.8.15"
Expand All @@ -63,6 +63,6 @@ which = "4.0.2"
term_size = "=1.0.0-beta.2"

[dev-dependencies]
insta = { version = "1.5.2", features = ["redactions"] }
insta = { version = "1.5.3", features = ["redactions"] }
once_cell = "1.5.2"
regex = "1.4.3"

0 comments on commit 4349ecc

Please sign in to comment.