···1919 - name: Checkout your repository using git
2020 uses: actions/checkout@v4
21212222- - name: Set SITE and BASE values if MANUAL_SITE_BASE is false
2323- run: |
2424- if jq '.MANUAL_SITE_BASE == false' src/config.json; then
2525- SITE="https://$GITHUB_ACTOR.github.io"
2626- REPO_NAME="${GITHUB_REPOSITORY#*/}"
2727- if [ "$REPO_NAME" = "$GITHUB_ACTOR.github.io" ]; then
2828- BASE=""
2929- else
3030- BASE="/$REPO_NAME"
3131- fi
3232- jq --arg SITE "$SITE" --arg BASE "$BASE" \
3333- '.SITE = $SITE | .BASE = $BASE' src/config.json > tmp.$$.json && mv tmp.$$.json src/config.json
3434- fi
3535-3622 - name: Install, build, and upload your site
3723 uses: withastro/action@v3
3824