Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/preview-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ jobs:
chmod +x hugo-tools
sudo mv hugo-tools /usr/local/bin/hugo-tools

# - name: Clone website repository
# env:
# GITHUB_USER: 1gtm
# GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
# WEBSITE_REPOSITORY: ${{ secrets.WEBSITE_REPOSITORY }}
# run: |
# url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${WEBSITE_REPOSITORY}.git"
# cd $RUNNER_WORKSPACE
# git clone --recurse-submodules $url
# cd $(basename $WEBSITE_REPOSITORY)
# git config user.name "${GITHUB_USER}"
# git config user.email "${GITHUB_USER}@appscode.com"
- name: Clone website repository
env:
GITHUB_USER: 1gtm
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
WEBSITE_REPOSITORY: ${{ secrets.WEBSITE_REPOSITORY }}
run: |
url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${WEBSITE_REPOSITORY}.git"
cd $RUNNER_WORKSPACE
git clone --recurse-submodules $url
cd $(basename $WEBSITE_REPOSITORY)
git config user.name "${GITHUB_USER}"
git config user.email "${GITHUB_USER}@appscode.com"

- name: Update docs
env:
Expand All @@ -70,8 +70,8 @@ jobs:
WEBSITE_REPOSITORY: ${{ secrets.WEBSITE_REPOSITORY }}
run: |
set -x
# export WEBSITE_ROOT=$RUNNER_WORKSPACE/$(basename $WEBSITE_REPOSITORY)
# cd $WEBSITE_ROOT
export WEBSITE_ROOT=$RUNNER_WORKSPACE/$(basename $WEBSITE_REPOSITORY)
cd $WEBSITE_ROOT
npm install
make assets
if [ "${{ github.event_name }}" == "pull_request" ]; then
Expand Down
Loading