35 lines
741 B
YAML
35 lines
741 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build release
|
|
run: cargo build --release --verbose
|
|
|
|
- name: Automatic Releases
|
|
uses: marvinpinto/action-automatic-releases@v1.2.1
|
|
with:
|
|
# GitHub secret token
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
# Release title (for automatic releases)
|
|
title: Automatic release
|
|
# Assets to upload to the release
|
|
files: target/release/mrfetch
|
|
# Git tag
|
|
automatic_release_tag: AUTO
|
|
# Prerelease
|
|
prerelease: true
|
|
|