Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workflow 수정 #46

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/deploy-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
name: set the target STAGE
runs-on: ubuntu-latest
outputs:
destination-repository: ${{inputs.stage == 'production' && env.PRODUCTION_REPOSITORY && env.DEVELOP_REPOSITORY}}
DESTINATION_REPOSITORY: ${{inputs.stage == 'production' && env.PRODUCTION_REPOSITORY && env.DEVELOP_REPOSITORY}}
steps:
- name: get variables
run: echo "$destination-repository"
run: echo "$DESTINATION_REPOSITORY"

build:
needs: variable
runs-on: ubuntu-latest
container: pandoc/latex
outputs:
destination-repository: ${{needs.variable.outputs.destination-repository}}
DESTINATION_REPOSITORY: ${{needs.variable.outputs.DESTINATION_REPOSITORY}}
target-branch: ${{steps.deploy-information.outputs.target-branch}}
steps:
- uses: actions/checkout@v4
Expand All @@ -61,22 +61,21 @@ jobs:
with:
source-directory: 'output'
destination-github-username: 'sambad-adventure'
destination-repository-name: ${{needs.variable.outputs.destination-repository}}
destination-repository-name: ${{needs.variable.outputs.DESTINATION_REPOSITORY}}
user-email: ${{secrets.EMAIL}}
commit-message: 'chore: depoloy'
commit-message: ${{github.event.commits.message}}
target-branch: ${{inputs.stage == 'prodction' && 'main' || 'main' }}
- name: get deploy information
id: deploy-information
run: echo "target-repository=${{needs.variable.outputs.destination-repository}}" >> "$GITHUB_OUTPUT" |
run: echo "target-repository=${{needs.variable.outputs.DESTINATION_REPOSITORY}}" >> "$GITHUB_OUTPUT" |
echo "target-branch=${{inputs.stage == 'prodction' && 'main' || 'main' }}" >> "$GITHUB_OUTPUT"
info:
name: get deploy information
runs-on: ubuntu-latest
needs: build
steps:
- env:
destination-repository: ${{needs.build.outputs.destination-repository}}
target-branch: ${{needs.build.outputs.target-branch}}
run: |
echo "$destination-repository" |
- run: echo "$DESTINATION_REPOSITORY" |
echo "$target-branch"
env:
destination-repository: ${{needs.build.outputs.DESTINATION_REPOSITORY}}
target-branch: ${{needs.build.outputs.target-branch}}
Loading