RELEASE 0.3.1 #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |