Skip to content

🔖 Publish 2.0.0-rc.6 #16

🔖 Publish 2.0.0-rc.6

🔖 Publish 2.0.0-rc.6 #16

Workflow file for this run

name: ✨ Publish
run-name: 🔖 Publish ${{ github.ref_name }}
on:
release:
types: [ "published" ]
env:
CARGO_TERM_COLOR: always
jobs:
crate:
name: ✨ Publish to crates.io
runs-on: macos-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🦀 Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: 📦 Publish the crate
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
windows-build:
name: 🪟 Build for Windows
runs-on: windows-latest
permissions:
contents: write
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🦀 Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: 🏗️ Build
run: cargo build --release
- name: 📤 Upload asset
run: gh release upload ${{ github.event.release.tag_name }} target/release/mrktpltsbot.exe
env:
GH_TOKEN: ${{ github.token }}