Skip to content

Commit

Permalink
Remove GH pages and deployment to CF worker
Browse files Browse the repository at this point in the history
Using CF pages now.
  • Loading branch information
acogoluegnes committed Oct 13, 2023
1 parent 42e3c28 commit 3b60ed8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,27 @@ POM_VERSION=$(cat pom.xml | grep -oPm1 '(?<=<version>)[^<]+')
# shellcheck disable=SC2102
if [[ $POM_VERSION == *[SNAPSHOT]* ]]
then
DIRECTORY="snapshot"
PAGES_BRANCH="pages-snapshot"
elif [[ $POM_VERSION == *[RCM]* ]]; then
DIRECTORY="milestone"
PAGES_BRANCH="pages-milestone"
else
DIRECTORY="release"
PAGES_BRANCH="pages-release"
fi

MESSAGE=$(git log -1 --pretty=%B)

# Concourse does shallow clones, so need the next 2 commands to have the gh-pages branch
git remote set-branches origin 'gh-pages'
git remote set-branches origin $PAGES_BRANCH
git fetch -v
git checkout gh-pages
mkdir -p $DIRECTORY/htmlsingle
cp target/generated-docs/index.html $DIRECTORY/htmlsingle
cp target/generated-docs/index.html .
if [ -z "$(git status --porcelain)" ];
then
echo "Nothing to commit"
git checkout main
else
git add $DIRECTORY/
git add .
git commit -m "$MESSAGE"
git push origin gh-pages
git checkout main
fi
fi
15 changes: 0 additions & 15 deletions ci/worker/package.json

This file was deleted.

19 changes: 0 additions & 19 deletions ci/worker/src/index.ts

This file was deleted.

106 changes: 0 additions & 106 deletions ci/worker/tsconfig.json

This file was deleted.

4 changes: 0 additions & 4 deletions ci/worker/wrangler.toml

This file was deleted.

0 comments on commit 3b60ed8

Please sign in to comment.