Skip to content
Permalink
Browse files
[website] deploy staging after every change (#3118)
  • Loading branch information
nicoloboschi committed Mar 17, 2022
1 parent 0235be3 commit c112637ec8be2a2f3a6baf6a28bed11934bd4b6f
Showing 14 changed files with 23 additions and 7 deletions.
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:


@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -26,6 +26,7 @@ on:
- master
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -27,6 +27,7 @@ on:
- branch-*
paths-ignore:
- 'site/**'
- 'site3/**'
workflow_dispatch:

env:
@@ -17,15 +17,19 @@
# under the License.
#

name: Website deploy
name: Website staging deploy
on:
schedule:
# DISABLED UNTIL WE DECIDE TO DEPLOY IT
# - cron: '0 */24 * * *'
workflow_dispatch:
push:
branches:
- master
paths:
- 'site3/**'
- '.github/workflows/website-staging-deploy.yaml'

jobs:
build-website:
name: Build and publish website
name: Build and stage website
runs-on: ubuntu-latest
timeout-minutes: 180
steps:
@@ -35,12 +35,12 @@ TMP_DIR=/tmp/bookkeeper-site
git clone "https://$ORIGIN_REPO" .
git config user.name "Apache BookKeeper Site Updater"
git config user.email "dev@bookkeeper.apache.org"
git checkout asf-site
git checkout asf-staging
# copy the apache generated dir
cp -r $ROOT_DIR/site3/website/build/* $TMP_DIR/content

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

rm -rf $TMP_DIR
)

0 comments on commit c112637

Please sign in to comment.