Skip to content

build: release 0.6.0 #7

build: release 0.6.0

build: release 0.6.0 #7

Workflow file for this run

name: Release
on:
push:
tags: ['*']
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test
- name: Publish
env:
CRATE_IO_ACCESS_TOKEN: ${{ secrets.CRATE_IO_ACCESS_TOKEN }}
run: cargo publish --token $CRATE_IO_ACCESS_TOKEN
- name: Install kokai
run: cargo install kokai
- name: Create Release Note
run: kokai release --ref ${{ github.ref }} --tag-from-ref . > RELEASE_NOTE.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: RELEASE_NOTE.md
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/runtasktic
asset_content_type: application/octet-stream
asset_name: runtasktic-linux-x86_64