Skip to content

0.1.0

0.1.0 #6

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install cross
run: cargo install cross
- name: Build for Linux (Debian)
run: cross build --release --target x86_64-unknown-linux-gnu
- name: Set up Git
run: |
git config --global user.name "Shubh"
git config --global user.email "shubhisroking@proton.me"
- name: Create release
id: create_release
uses: ncipollo/release-action@v1.13.0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:'- %s%n')
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: rhred-linux-deb
path: target/x86_64-unknown-linux-gnu/release/rhred
if: ${{ success() }}