Skip to content

Commit

Permalink
fix: web-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev authored Oct 14, 2024
1 parent 736cf1c commit baed8c7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,21 @@ jobs:
run: |
echo "${{ github.event.client_payload.config_secret }}" | base64 --decode > ./src/config/temp_config.json
- name: Validate Config JSON
run: |
if ! jq empty ./src/config/temp_config.json; then
echo "Invalid JSON format in temp_config.json"
exit 1
fi
- name: Set Config Json File
id: create-json
uses: jsdaniell/create-json@v1.2.2
with:
name: "config.json"
name: "config.json" # 생성할 파일 이름
json: ${{ steps.decode-config.outputs.result }}
dir: './src/config'
dir: './src/config' # 파일이 생성될 디렉토리

- name: Build Project
working-directory: .
run: npm run build
Expand Down

0 comments on commit baed8c7

Please sign in to comment.