mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-23 21:48:35 +01:00
41 lines
960 B
YAML
41 lines
960 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches: [ release ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: Swatinem/rust-cache@v1.0.1
|
|
- name: Build
|
|
run: cargo build --release --verbose
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- name: Publish crate
|
|
run: cargo publish --manifest-path kalk/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
|
|
- name: Publish CLI
|
|
run: cargo publish --manifest-path kalk_cli/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
|
|
|
|
release_ubuntu:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- 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 }}
|
|
draft: false
|
|
prerelease: false
|