Skip to content

Add clickhouse and api handlers #8

Add clickhouse and api handlers

Add clickhouse and api handlers #8

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [ created ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --all --release && strip target/release/pony && mv target/release/pony target/release/pony_amd64
- name: Extract version from Cargo.toml
id: extract_version
run: |
version=$(grep '^version =' Cargo.toml | sed 's/version = //; s/"//g')
echo "version=${version}" >> $GITHUB_ENV
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
run: |
git tag ${{ env.version }}
git push origin ${{ env.version }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/pony_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}