Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! allow …
Browse files Browse the repository at this point in the history
…defining a custom site
  • Loading branch information
herbetom committed Nov 4, 2023
1 parent 45921b4 commit 5d6ff81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-gluon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
- name: Checkout Site
run: contrib/actions/checkout-site.sh
env:
GLUON_SITE: ${{ vars.GLUON_SITE }}
GLUON_SITE_URL: ${{ vars.GLUON_SITE_URL }}
GLUON_SITE_BRANCH: ${{ vars.GLUON_SITE_BRANCH }}

- name: Build
run: contrib/actions/run-build.sh ${{ matrix.target }}
Expand Down
9 changes: 6 additions & 3 deletions contrib/actions/checkout-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

set -e

echo "${GLUON_SITE}"
echo "cloning ${GLUON_SITE_URL}"

GLUON_SITEDIR=site

if [ ! -z "$GLUON_SITE" ]; then
git clone ${GLUON_SITE} "${GLUON_SITEDIR}"
if [ ! -z "GLUON_SITE_URL" ]; then
git clone "${GLUON_SITE_URL}" "${GLUON_SITEDIR}"
if [ ! -z "$GLUON_SITE_BRANCH" ]; then
git -C "${GLUON_SITEDIR}" checkout "${GLUON_SITE_BRANCH}"
fi
echo "GLUON_SITEDIR=${GLUON_SITEDIR}" >> "$GITHUB_ENV"
tree site
fi
Expand Down

0 comments on commit 5d6ff81

Please sign in to comment.