2023-04-22 19:02:09 +03:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-04-22 19:08:09 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build release
|
|
|
|
run: cargo build --release --verbose
|
2023-04-22 19:19:39 +03:00
|
|
|
|
|
|
|
- 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
|
2023-04-22 19:24:21 +03:00
|
|
|
# Git tag
|
|
|
|
automatic_release_tag: AUTO
|