Skip to content
Permalink
Browse files
[website] fix deploy staging script (#3122)
  • Loading branch information
nicoloboschi committed Mar 17, 2022
1 parent c97fea5 commit 5dfade86c896843377de1af1c764b95566647893
Showing 2 changed files with 12 additions and 5 deletions.
@@ -27,8 +27,11 @@ on:
- 'site3/**'
- '.github/workflows/website-staging-deploy.yaml'

env:
DEPLOY_URL: "https://bookkeeper.staged.apache.org/"

jobs:
build-website:
stage-website:
name: Build and stage website
runs-on: ubuntu-latest
timeout-minutes: 180
@@ -42,12 +45,15 @@ jobs:
distribution: 'temurin'
java-version: 11

- uses: actions/setup-node@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'

- name: publish
- name: Setup yarn
run: npm install -g yarn

- name: Publish
run: |
./site3/website/scripts/build-website.sh
./site3/website/scripts/publish-website.sh
@@ -37,7 +37,8 @@ TMP_DIR=/tmp/bookkeeper-site
git config user.email "dev@bookkeeper.apache.org"
git checkout asf-staging
# copy the apache generated dir
cp -r $ROOT_DIR/site3/website/build/* $TMP_DIR/content
mkdir -p content
cp -r $ROOT_DIR/site3/website/build/* content

git add -A .
git diff-index --quiet HEAD || (git commit -m "Updated site at revision $REVISION" && git push -q origin HEAD:asf-staging)

0 comments on commit 5dfade8

Please sign in to comment.