Skip to content

release action on workflow dispatch #59

release action on workflow dispatch

release action on workflow dispatch #59

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -C target-feature=+crt-static
permissions:
contents: write
jobs:
release:
name: Publish release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- name: build
run: cargo build --target x86_64-unknown-linux-gnu --release --verbose && mv ./target/x86_64-unknown-linux-gnu/release/sniprun .
- name: upload to releases
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sniprun
tag: ${{github.ref}}
overwrite: false
body: "This release and associated artifacts were created by Github Action. See the changelog [here](https://github.com/michaelb/sniprun/blob/master/CHANGELOG.md)."