feat: add Heroku

This commit is contained in:
zizifn
2020-12-12 22:46:23 +08:00
committed by zizifn3
parent d0c115838e
commit 1b854779f7
5 changed files with 94 additions and 0 deletions

23
.github/workflows/heroku.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.7.8 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.APP_NAME}} #Must be unique in Heroku
heroku_email: ${{secrets.EMAIL}}
usedocker: true
# docker_build_args: |
# NODE_ENV
# SECRET_KEY
env:
NODE_ENV: production
SECRET_KEY: ${{ secrets.MY_SECRET_KEY }}
UUID: ${{ secrets.HEROKU_V2RAY_UUID }}