-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
push:
# Pattern matched against refs/tags
tags:
- "v*"
permissions:
contents: write
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: rs-workspace/[email protected]
- name: Publish Crate
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
# These step has been taken from https://github.com/AS1100K/aether/blob/main/.github/workflows/release.yml
- name: Parse Changelog
id: parse_changelog
uses: ocavue/changelog-parser-action@v1
with:
filepath: "./CHANGELOG.md"
removemarkdown: false
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
body: ${{ steps.parse_changelog.outputs.latestBody }}