feat: 배포용 workflow 고도화 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Production | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
user_name: | ||
description: 배포한 사용자 | ||
required: true | ||
type: string | ||
stage_choice: | ||
description: 배포 유형 (production,devleop) | ||
type: choice | ||
options: | ||
- develop | ||
- production | ||
workflow_call: | ||
inputs: | ||
user_name: | ||
description: 배포한 사용자 | ||
required: true | ||
type: string | ||
run-name: '${{inputs.user_name}} runs workflow for ${{inputs.stage_choice}} deploy' | ||
jobs: | ||
env: | ||
name: setup environment variables | ||
runs-on: ubuntu-latest | ||
env: | ||
stage: ${{inputs.stage_choice}} | ||
build_script_path: ./tools/build.sh | ||
outputs: | ||
stage: ${{env.stage}} | ||
build: | ||
needs: env | ||
runs-on: ununtu-latest | ||
container: pandoc/latex | ||
steps: | ||
- name: test | ||
run: echo ${{needs.env.outputs}} | ||
- uses: actions/checkout@v2 |