From 4bd85ee5e5076c9a36b6d0b6e48f307c2f6dbffc Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Mon, 18 Apr 2022 17:59:26 +0100 Subject: [PATCH] Add deploy to heroku action --- .github/workflows/github-actions.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 5cdc89e..c0f10ea 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -2,11 +2,19 @@ name: Blessed.rs on: [push] jobs: build: - name: Compile release build + name: Compile and Deploy runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: toolchain: stable - - run: cargo build --release --all-features \ No newline at end of file + - name: Compile Release build + run: cargo build --release --all-features + - name: Deploy to Heroku + uses: akhileshns/heroku-deploy@v3.12.12 + with: + heroku_api_key: ${{secrets.HEROKU_API_KEY}} + heroku_app_name: "blessed-rs" #Must be unique in Heroku + heroku_email: "nico@nicoburns.com" + usedocker: true \ No newline at end of file