commit ad346c167263b7162a9df6f8c61f465656c1820f
parent f5e1fcaaa9bee43a6ee6bb9ed1b43b125d226c58
Author: alex wennerberg <alex@alexwennerberg.com>
Date: Mon, 15 Jun 2020 12:04:56 -0500
Rename gourami_social to gourami
Add new WIP release github action
Diffstat:
7 files changed, 35 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
@@ -0,0 +1,26 @@
+name: Build and Test
+
+on:
+ push:
+ tags:
+ "*"
+
+jobs:
+ publish:
+ name: Rust project
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions-rs/toolchain@v1
+ with:
+ rust-version: stable
+ - uses: actions/checkout@v2
+ - name: build
+ run: cargo build --release
+ - name: Upload binaries to release
+ uses: svenstaro/upload-release-action@v1-release
+ with:
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
+ file: target/release/gourami_social
+ asset_name: gourami
+ tag: ${{ github.ref }}
+ overwrite: true
diff --git a/Cargo.lock b/Cargo.lock
@@ -648,7 +648,7 @@ dependencies = [
]
[[package]]
-name = "gourami_social"
+name = "gourami"
version = "0.1.7"
dependencies = [
"activitystreams",
diff --git a/Cargo.toml b/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "gourami_social"
+name = "gourami"
version = "0.1.7"
authors = ["alex wennerberg <alex@alexwennerberg.com>"]
edition = "2018"
diff --git a/README.md b/README.md
@@ -46,7 +46,7 @@ Run `cargo install --path .`
Configuration is done via [dotenv](https://github.com/dotenv-rs/dotenv). For development and testing, the `sample_env` file is good to get started -- copy it to `.env` in the same directory that you're running gourami.
-Run the local server with `gourami_social run`
+Run the local server with `gourami run`
To create a user account:
diff --git a/ansible/gourami.service b/ansible/gourami.service
@@ -7,7 +7,7 @@ Type=simple
Restart=always
User=root
WorkingDirectory=/home/gourami
-ExecStart=/home/gourami/gourami_social run
+ExecStart=/home/gourami/gourami run
[Install]
WantedBy=multi-user.target
diff --git a/ansible/playbook.yml b/ansible/playbook.yml
@@ -14,8 +14,8 @@
- libsqlite3-dev
- name: copy binary over
copy:
- src: ../target/release/gourami_social
- dest: /home/gourami/gourami_social # TODO template etc
+ src: ../target/release/gourami
+ dest: /home/gourami/gourami # TODO template etc
owner: gourami
- name: copy static files over
copy:
diff --git a/src/main.rs b/src/main.rs
@@ -1,8 +1,8 @@
use clap::{App, Arg, SubCommand};
use dotenv;
-use gourami_social::ap;
-use gourami_social::routes::run_server;
-use gourami_social::POOL;
+use gourami::ap;
+use gourami::routes::run_server;
+use gourami::POOL;
#[macro_use]
extern crate diesel_migrations;