Skip to content

Merge pull request #180 from tkrs/release/v0.7.8 #2

Merge pull request #180 from tkrs/release/v0.7.8

Merge pull request #180 from tkrs/release/v0.7.8 #2

Workflow file for this run

name: Publish to crate.io
on:
push:
tags: ["v*"]
jobs:
publish-crate:
environment: crates-io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install rust toolchain stable
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
- name: Generate release context
id: release_context
run: |
tag="$(git describe HEAD --abbrev=0 --tags)"
echo "tag_name=$tag" >>$GITHUB_OUTPUT
- name: Download artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: pr.yml
workflow_conclusion: success
name: "release-note-${{ steps.release_context.outputs.tag_name }}"
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ steps.release_context.outputs.tag_name }}
tag_name: ${{ steps.release_context.outputs.tag_name }}
body_path: RELEASE_BODY.md