Skip to content

Release 1.0.0-beta.1 #3

Release 1.0.0-beta.1

Release 1.0.0-beta.1 #3

Workflow file for this run

name: Release QuickMark Core
on:
push:
tags:
- 'quickmark-core@*'
jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Publish quickmark-core to crates.io
run: cargo publish -p quickmark-core --token ${{ secrets.CRATES_IO_TOKEN }}
- name: Generate changelog
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --include-path "crates/quickmark-core/**" --tag-pattern "quickmark-core@*"
env:
OUTPUT: CHANGELOG.md
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
draft: false
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}