Skip to content

Commit

Permalink
๏ฟฝfix: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev authored Oct 14, 2024
1 parent 264d983 commit bb92a01
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@ jobs:
uses: actions/checkout@v2

- name: Ensure Config Directory Exists
run: mkdir -p ./src/config
run: mkdir -p ./src/config # config ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ

- name: Create Config JSON File
id: create-json
uses: jsdaniell/[email protected]
with:
name: "config.json"
json: ${{ secrets.CONFIG_JSON }}
json: ${{ secrets.CONFIG_JSON }}
dir: './src/config'

- name: Read Config JSON File
id: read-json
run: |
cat ./src/config/config.json | jq -c . > ./src/config/config_string.json
echo "::set-output name=json_string::$(cat ./src/config/config_string.json)"
- name: Trigger Deploy
uses: peter-evans/repository-dispatch@v2
with:
Expand All @@ -36,5 +42,5 @@ jobs:
"branch": "${{ github.ref }}",
"source_directory": "./build",
"destination_directory": "/dodam/myinfo",
"config_secret": "$(cat ./src/config/config.json)"
"config_secret": "${{ steps.read-json.outputs.json_string }}"
}

0 comments on commit bb92a01

Please sign in to comment.