Skip to content

Commit

Permalink
Correct git commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilverstein committed Feb 28, 2020
1 parent fec6cca commit e02e1aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/release-to-wiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

GIT_REPOSITORY_URL="https://${GITHUB_PERSONAL_ACCESS_TOKEN}@github.com/$GITHUB_REPOSITORY.wiki.git"
tmp_dir="/tmp/build/${GIT_REF}"
mkdir -p "$tmp_dir"
(
cd "$tmp_dir" || exit 1
git clone "$GIT_REPOSITORY_URL"
git clone "$GIT_REPOSITORY_URL" .
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
)

mkdir -p "$tmp_dir/${GIT_REF}"
ls
ls "${GIT_REF}/"
cp "${GIT_REF}/*.zip" "$tmp_dir/${GIT_REF}"

echo "Publishing build files for ${GIT_REF}"
Expand Down
3 changes: 2 additions & 1 deletion .github/remove-from-wiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ GIT_REPOSITORY_URL="https://${GITHUB_PERSONAL_ACCESS_TOKEN}@github.com/$GITHUB_R

echo "Checking out wiki repository"
tmp_dir="/tmp/build/${GIT_REF}"
mkdir -p "$tmp_dir"
(
cd "$tmp_dir" || exit 1
git clone "$GIT_REPOSITORY_URL"
git clone "$GIT_REPOSITORY_URL" .
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ jobs:
- name: Build develop version
run: |
ZIP=`npm run release-zip | grep Creating | cut -c10-`
echo "built $ZIP"
mv "$ZIP" google-site-kit-dev.zip
- name: Build release version
run: |
npm run build
ZIP=`npm run dev-zip | grep Creating | cut -c10-`
echo "built $ZIP"
mv "$ZIP" google-site-kit.zip
- name: Deploy build files to wiki
run: |
Expand Down

0 comments on commit e02e1aa

Please sign in to comment.