Improve workflow and docs

next
Sayan Nandan 4 years ago
parent 1d3725d5e8
commit c75556ab2c
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -11,8 +11,11 @@ env:
RELEASE_DIR: artifacts
GITHUB_REF: "${{ github.ref }}"
WINDOWS_TARGET: x86_64-pc-windows-msvc
WINDOWS64_NAME: x86_64-windows
MACOS_TARGET: x86_64-apple-darwin
MACOS64_NAME: x86_64-macos
LINUX_TARGET: x86_64-unknown-linux-gnu
LINUX64_NAME: x86_64-linux-gnu
jobs:
build:
@ -101,7 +104,7 @@ jobs:
run: |
mv ./target/${{ env.LINUX_TARGET }}/release/${{ env.RELEASE_TDB }} ./dist
mv ./target/${{ env.LINUX_TARGET }}/release/${{ env.RELEASE_TSH }} ./dist
zip ./${{ env.RELEASE_DIR}}/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX_TARGET }}.zip ./dist/tsh ./dist/tdb -j
zip ./${{ env.RELEASE_DIR}}/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX64_NAME }}.zip ./dist/tsh ./dist/tdb -j
- name: Create Build (Windows)
if: matrix.build == 'windows'
@ -109,14 +112,14 @@ jobs:
run: |
mv ./target/release/${{ env.RELEASE_TDB }}.exe ./dist
mv ./target/release/${{ env.RELEASE_TSH }}.exe ./dist
7z a -tzip ./${{ env.RELEASE_DIR }}/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.zip ./dist/*
7z a -tzip ./${{ env.RELEASE_DIR }}/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS64_NAME }}.zip ./dist/*
- name: Create Build (MacOS)
if: matrix.build == 'macos'
run: |
mv ./target/release/${{ env.RELEASE_TDB }} ./dist
mv ./target/release/${{ env.RELEASE_TSH }} ./dist
zip ./${{ env.RELEASE_DIR }}/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.zip ./dist/tsh ./dist/tdb -j
zip ./${{ env.RELEASE_DIR }}/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS64_NAME }}.zip ./dist/tsh ./dist/tdb -j
- name: Upload binaries
uses: actions/upload-artifact@v1
@ -167,9 +170,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./linux/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX_TARGET }}.zip
asset_path: ./linux/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX64_NAME }}.zip
asset_content_type: application/octet-stream
asset_name: tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX_TARGET }}.zip
asset_name: tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX64_NAME }}.zip
- name: Release Windows bundle
uses: actions/upload-release-asset@v1
@ -177,9 +180,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./windows/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.zip
asset_path: ./windows/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS64_NAME }}.zip
asset_content_type: application/octet-stream
asset_name: tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.zip
asset_name: tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS64_NAME }}.zip
- name: Release MacOS bundle
uses: actions/upload-release-asset@v1
@ -187,6 +190,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./macos/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.zip
asset_path: ./macos/tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS64_NAME }}.zip
asset_content_type: application/octet-stream
asset_name: tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.zip
asset_name: tdb-bundle-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS64_NAME }}.zip

@ -1,6 +1,6 @@
# Terrabase**DB** - The next-generation database
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/terrabasedb/terrabase/Rust?style=flat-square) ![Status: Pre-Alpha](https://img.shields.io/badge/Status-Pre--alpha-critical?style=flat-square) ![Version: 0.1.0](https://img.shields.io/badge/Development-Actively%20Developed-32CD32?style=flat-square) ![GitHub release (latest by date)](https://img.shields.io/github/v/tag/terrabasedb/terrabase.svg?style=flat-square)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/terrabasedb/terrabase/Tests?style=flat-square) ![Status: Pre-Alpha](https://img.shields.io/badge/Status-Pre--alpha-critical?style=flat-square) ![Version: 0.1.0](https://img.shields.io/badge/Development-Actively%20Developed-32CD32?style=flat-square) ![GitHub release (latest by date)](https://img.shields.io/github/v/tag/terrabasedb/terrabase.svg?style=flat-square)
## What is TerrabaseDB?
@ -15,12 +15,11 @@ As noted earlier, TerrabaseDB is pre-alpha software and the entire API is subjec
## Getting started
We have experimnetal client and server implementations for the database already.
We have experimental client and server implementations for the database already.
The releases are uploaded in bundles, for example, `tdb-bundle-v0.2.0-x86_64-unknown-linux-gnu.zip`. Each bundle contains `tdb` and `tsh`, that is, the database server and the client command-line tool.
* Download a bundle for your platform from [releases](https://github.com/terrabasedb/terrabase/releases)
* Rename the files to tdb and tsh for ease
* Run `chmod +x tdb tsh`
* Run `chmod +x tdb tsh` (on Unix systems)
* Start the database server by running `./tdb`
* Start the client by running `./tsh`
* You can run commands like `SET sayan 17` , `GET cat` , `UPDATE cat 100` or `DEL cat` !

@ -0,0 +1,3 @@
# This is the script that is used for pushing the latest tag to `remote`
lr=`git describe --tags --abbrev=0 --match v*`
git push origin $lr
Loading…
Cancel
Save