Skip to content

Update dependency tsdown to v0.23.1 #641

Update dependency tsdown to v0.23.1

Update dependency tsdown to v0.23.1 #641

Workflow file for this run

name: Release CLI
on:
push:
tags:
- "**[0-9]+.[0-9]+.[0-9]+*"
pull_request:
types: [labeled, synchronize]
permissions:
contents: read
jobs:
release:
if: >-
github.event_name == 'push' ||
github.event.label.name == 'release-test' ||
contains(github.event.pull_request.labels.*.name, 'release-test')
strategy:
matrix:
include:
- os: ubuntu-24.04
binary: rfd-cli
artifact: rfd-cli-x86_64-unknown-linux-gnu
- os: macos-15
binary: rfd-cli
artifact: rfd-cli-aarch64-apple-darwin
- os: macos-15-intel
binary: rfd-cli
artifact: rfd-cli-x86_64-apple-darwin
- os: windows-2025
binary: rfd-cli.exe
artifact: rfd-cli-x86_64-pc-windows-msvc.exe
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Determine release tag
id: tag
shell: bash
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "value=v0.0.0-pre+${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
else
echo "value=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- run: |
rustup toolchain install
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Build Release Binary
run: |
cargo build --release --package rfd-cli
- name: Rename Binary
shell: bash
run: |
mv "target/release/${{ matrix.binary }}" "target/release/${{ matrix.artifact }}"
- uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
allowUpdates: true
draft: ${{ github.event_name == 'pull_request' }}
tag: ${{ steps.tag.outputs.value }}
artifacts: "target/release/${{ matrix.artifact }}"