Skip to content

RELEASE 0.5.0

RELEASE 0.5.0 #11

Workflow file for this run

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 }}