Skip to content

Bump version

Bump version #31

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.SSH_KEY }}
# - name: Check CHANGELOG.md
# run: ./scripts/check_CHANGELOG.sh "${{ github.ref }}"
- name: Login
run: echo ${{ secrets.CRATES_IO_TOKEN }} | cargo login
- name: Publish
run: ./scripts/publish.sh
- name: Update release branch
run: git push origin ${{ github.ref }}:release
- name: Get version
id: get-version
run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> "$GITHUB_OUTPUT"
- name: Create release notes
run: git log -p -1 CHANGELOG.md | grep '^+\($\|[^+]\)' | cut -c 2- | tee body.md
- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: Release ${{ steps.get-version.outputs.version }}
body_path: body.md
draft: false
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
token: ${{ secrets.REPO_TOKEN }}