Skip to content

Commit e95a157

Browse files
committed
bulid: add deploy scripts for heroku
1 parent 37a512f commit e95a157

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/cd.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
profile: minimal
21+
toolchain: stable
22+
1823
- uses: nrwl/nx-set-shas@v2
1924
with:
2025
main-branch-name: master
@@ -38,3 +43,12 @@ jobs:
3843
token: ${{ secrets.DEPLOY_KEY }}
3944
repository-name: feakin/online
4045
folder: packages/render/dist
46+
47+
- name: Build
48+
run: cargo build --release --manifest-path=server/server/Cargo.toml
49+
50+
- uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
51+
with:
52+
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
53+
heroku_app_name: "phodal"
54+
heroku_email: "gmszone@qq.com"

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: server/server/target/release/server

server/server/Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)