2135- Fix broken website build
@@ -20,7 +20,8 @@ name: Website
# events but only for the trunk branch
on:
push:
- branches: [ trunk ]
+ branches:
+ - trunk
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -34,6 +35,8 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
# Runs a single command using the runners shell
- name: Build Website
run: |
@@ -43,13 +46,8 @@ jobs:
cp -r $WORKDIR/* .
git add .
git commit -m "Automatic Site Publish by Buildbot"
+ git push -u origin asf-site
env:
WORKDIR: /tmp/mahout-site
RUBY_PATH: ~/shared/.rvm
GEM_HOME: ${RUBY_PATH}/gems
- - name: Push New Site
- uses: ad-m/github-push-action@master
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- branch: asf-site
- force: true
