mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 08:52:43 +08:00
enable region
This commit is contained in:
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
@@ -18,23 +18,18 @@ on:
|
|||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# jobenv:
|
jobenv:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# environment: ${{ github.event.inputs.env }}
|
environment: ${{ github.event.inputs.env }}
|
||||||
# env: # Or as an environment variable
|
env: # Or as an environment variable
|
||||||
# APP_NAME: ${{ secrets.APP_NAME }}
|
APP_NAME: ${{ secrets.APP_NAME }}
|
||||||
# outputs:
|
outputs:
|
||||||
# actions: ${{ github.event.inputs.actions || 'deploy'}}
|
actions: ${{ github.event.inputs.actions || 'deploy'}}
|
||||||
# herokuAppName: ${{ github.event.inputs.heroku-app-name }}
|
test111: ${{ github.event.inputs.env }} # todo
|
||||||
# test111: ${{ github.event.inputs.env }} # todo
|
steps:
|
||||||
# steps:
|
- id: isDeployHeroku # TODO check atcion doc for usage
|
||||||
# - id: herokuAppName # TODO check atcion doc for usage
|
# if: ${{ github.event.inputs.actions == 'start'}}
|
||||||
# # if: ${{ github.event.inputs.actions == 'start'}}
|
run: echo "::set-output name=action::false"
|
||||||
# # run: echo "::set-output name=name::${{ github.event.inputs.heroku-app-name || secrets.APP_NAME }}"
|
|
||||||
# run: echo ::set-output name=name::${{ github.event.inputs.heroku-app-name }}
|
|
||||||
# - id: isDeployHeroku # TODO check atcion doc for usage
|
|
||||||
# # if: ${{ github.event.inputs.actions == 'start'}}
|
|
||||||
# run: echo "::set-output name=action::false"
|
|
||||||
# output-jobenv:
|
# output-jobenv:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# needs: jobenv
|
# needs: jobenv
|
||||||
@@ -47,6 +42,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
heroku-deploy:
|
heroku-deploy:
|
||||||
|
needs: jobenv
|
||||||
if: ${{ needs.jobenv.outputs.actions == 'deploy' || needs.jobenv.outputs.actions == ''}}
|
if: ${{ needs.jobenv.outputs.actions == 'deploy' || needs.jobenv.outputs.actions == ''}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: ${{ github.event.inputs.env }}
|
environment: ${{ github.event.inputs.env }}
|
||||||
@@ -70,6 +66,7 @@ jobs:
|
|||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
SECRET_KEY: ${{ secrets.MY_SECRET_KEY }}
|
SECRET_KEY: ${{ secrets.MY_SECRET_KEY }}
|
||||||
stop-start-destroy:
|
stop-start-destroy:
|
||||||
|
needs: jobenv
|
||||||
if: ${{ needs.jobenv.outputs.actions == 'start' || needs.jobenv.outputs.actions == 'stop' || needs.jobenv.outputs.actions == 'destroy' }}
|
if: ${{ needs.jobenv.outputs.actions == 'start' || needs.jobenv.outputs.actions == 'stop' || needs.jobenv.outputs.actions == 'destroy' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: ${{ github.event.inputs.env }}
|
environment: ${{ github.event.inputs.env }}
|
||||||
|
|||||||
Reference in New Issue
Block a user