Skip to content

Update README.md

Update README.md #8

Workflow file for this run

on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
name: Release
steps:
- uses: actions/checkout@v3
- name: Extract version from Cargo.toml
id: get_version
run: |
VERSION=$(grep -E '^version\s*=\s*".*"' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
echo "Version found: $VERSION"
echo "version=$VERSION" >> $GITHUB_ENV
- name: Create Tag
id: create_tag
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git tag "v${{ env.version }}"
git push origin "v${{ env.version }}"
- name: Generate Release Notes
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ env.version }}"
generateReleaseNotes: true
draft: true