Skip to content

Commit

Permalink
More config
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Mar 7, 2024
1 parent b4ba141 commit f3824f0
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/static-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,28 @@ jobs:
--build \
--alias=deploy-preview-${{ github.event.number }} \
--filter=iiif \
--json \
--dir=apps/iiif/.next/ > deploy_output.txt
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_IIIF_SITE_ID }}
IIIF_PREVIEW_URL: https://deploy-preview-${{ github.event.number }}--delft-iiif.netlify.app

- name: Get NETLIFY_OUTPUT
id: netlify
run: |
output=$(cat deploy_output.txt)
echo "NETLIFY_OUTPUT=$output" >> "$GITHUB_OUTPUT"
# - name: Get NETLIFY_OUTPUT
# id: netlify
# run: |
# output=$(cat deploy_output.txt)
# echo "NETLIFY_OUTPUT=$output" >> "$GITHUB_OUTPUT"

- name: Parse NETLIFY_OUTPUT JSON
run: |
echo "The URL where the logs from the deploy can be found"
echo "${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).logs }}"
echo ""
echo "the URL of the draft site that Netlify provides"
echo "${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).deploy_url }}"
echo ""
echo "the URL of the "real" site, set only if `--prod` was passed"
echo "${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).url }}"
# - name: Parse NETLIFY_OUTPUT JSON
# run: |
# echo "The URL where the logs from the deploy can be found"
# echo "${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).logs }}"
# echo ""
# echo "the URL of the draft site that Netlify provides"
# echo "${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).deploy_url }}"
# echo ""
# echo "the URL of the "real" site, set only if `--prod` was passed"
# echo "${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).url }}"
# - name: Run bun build
# run: bun run build --filter=static-site

Expand Down

0 comments on commit f3824f0

Please sign in to comment.