Skip to content

Update build-and-publish.yml #2

Update build-and-publish.yml

Update build-and-publish.yml #2

name: Build-and-publish
on:
push:
tags:
- 'v*'
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
#- name: Run tests
# run: cargo test --verbose
- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: target/release/mvc-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}