Skip to content
Permalink
Browse files
[website] fix GITHUB_TOKEN used for deployment (#3125)
  • Loading branch information
nicoloboschi committed Mar 18, 2022
1 parent 8a780ca commit 3c40d4ac0db5c55b3cd029d316a91d236156a43c
Showing 4 changed files with 6 additions and 2 deletions.
@@ -49,6 +49,8 @@ jobs:
ruby-version: 2.6.9

- name: publish
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
#!/bin/bash
set -e
@@ -55,6 +55,8 @@ jobs:
run: npm install -g yarn

- name: Publish
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
./site3/website/scripts/build-website.sh
./site3/website/scripts/publish-website.sh
@@ -32,7 +32,7 @@ echo "ORIGIN_REPO: $ORIGIN_REPO"
cd $TMP_DIR

# clone the remote repo
git clone --depth 1 -b asf-site "https://$GH_TOKEN@$ORIGIN_REPO" .
git clone --depth 1 -b asf-site "https://site-updater:${GITHUB_TOKEN}@$ORIGIN_REPO" .
git config user.name "Apache BookKeeper Site Updater"
git config user.email "dev@bookkeeper.apache.org"
# copy the apache generated dir
@@ -32,7 +32,7 @@ TMP_DIR=/tmp/bookkeeper-site
cd $TMP_DIR

# clone the remote repo
git clone --depth 1 -b asf-staging "https://$GH_TOKEN@$ORIGIN_REPO" .
git clone --depth 1 -b asf-staging "https://site-updater:${GITHUB_TOKEN}@$ORIGIN_REPO" .
git config user.name "Apache BookKeeper Site Updater"
git config user.email "dev@bookkeeper.apache.org"
# copy the apache generated dir

0 comments on commit 3c40d4a

Please sign in to comment.