Skip to content

Commit

Permalink
remove settings base and site
Browse files Browse the repository at this point in the history
  • Loading branch information
flo-bit committed Nov 28, 2024
1 parent 1667d34 commit 0716e8c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ jobs:
- name: Checkout your repository using git
uses: actions/checkout@v4

- name: Set SITE and BASE values if MANUAL_SITE_BASE is false
run: |
if jq '.MANUAL_SITE_BASE == false' src/config.json; then
SITE="https://$GITHUB_ACTOR.github.io"
REPO_NAME="${GITHUB_REPOSITORY#*/}"
if [ "$REPO_NAME" = "$GITHUB_ACTOR.github.io" ]; then
BASE=""
else
BASE="/$REPO_NAME"
fi
jq --arg SITE "$SITE" --arg BASE "$BASE" \
'.SITE = $SITE | .BASE = $BASE' src/config.json > tmp.$$.json && mv tmp.$$.json src/config.json
fi
- name: Install, build, and upload your site
uses: withastro/action@v3

Expand Down

0 comments on commit 0716e8c

Please sign in to comment.