Skip to content

Commit

Permalink
Fix deploy file to error on signing error
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed May 2, 2024
1 parent 127bfd3 commit ab26785
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cm_deploy_to_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
id: pages
uses: actions/configure-pages@v5
- name: Sign Config File
run: "mkdir -p public && curl -X POST --data-binary @${JSON_CONFIG} --header \"Content-Type: application/json\" https://criticalmoments.io/account/api/sign_config > ./public/${SIGNED_NAME}"
run: |
mkdir -p public && \
status_code=$(curl -X POST --data-binary @${JSON_CONFIG} -w "%{response_code}" --header "Content-Type: application/json" https://criticalmoments.io/account/api/sign_config -o ./public/${SIGNED_NAME}) && \
if [ $status_code != "200" ]; then; echo "Error signing config: $status_code"; cat ./public/${SIGNED_NAME}; exit 1; fi
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit ab26785

Please sign in to comment.