Skip to content

Commit a4a4dd1

Browse files
committed
Updates to release automation.
1 parent 05acc44 commit a4a4dd1

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,39 @@ on:
55
- 'v*'
66

77
jobs:
8-
release:
8+
publish:
99
runs-on: ubuntu-latest
10-
outputs:
11-
upload_url: ${{ steps.create_release.outputs.upload_url }}
1210
steps:
13-
- uses: actions/checkout@v2
14-
- run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
15-
- uses: actions-rs/toolchain@v1
11+
- name: Setup | Checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Setup | Rust
15+
uses: actions-rs/toolchain@v1
1616
with:
1717
toolchain: stable
18-
- uses: actions-rs/cargo@v1
19-
with:
20-
command: build
21-
args: --release
22-
- name: create release
23-
id: create_release
18+
profile: minimal
19+
override: true
20+
21+
- name: Build | Publish
22+
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
23+
24+
release:
25+
needs: publish
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Setup | Checkout
29+
uses: actions/checkout@v2
30+
31+
- name: Setup | Create Release Log
32+
run: cat CHANGELOG.md | tail -n +7 | head -n 25 > RELEASE_LOG.md
33+
34+
- name: Create Release
2435
uses: actions/create-release@v1
2536
env:
2637
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2738
with:
2839
tag_name: ${{ github.ref }}
2940
release_name: ${{ github.ref }}
30-
body: ""
41+
body_path: RELEASE_LOG.md
3142
draft: true
3243
prerelease: false

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ We follow [semver](https://semver.org/spec/v2.0.0.html) for versioning this syst
1616
- all release tags should start with the letter `v` followed by a semver version.
1717
- [ ] CI is configured for release tags and will create a new Github release.
1818
- [ ] once CI for the tag has finished successfully, update the new release page with details on the changes made, which should reflect the content of the `CHANGELOG.md`.
19-
- [ ] lastly, `cargo publish`.

0 commit comments

Comments
 (0)