blob: 67d9ef432fd44445cb72f384ee2969fac9a3ab65 [file] [log] [blame]
name: Compilation of the Webpage
on:
pull_request:
types: [closed]
branches:
- main
jobs:
jekyll:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- name: update_url
run : |
URL="https://wayang.apache.org"
BASE_URL="/"
echo "url: \"${URL}\"" > _config.yml.tmp
echo "baseurl: \"${BASE_URL}\"" >> _config.yml.tmp
cat _config.yml | grep -v "url:" >> _config.yml.tmp
mv _config.yml.tmp _config.yml
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- name: cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
# Specify the target branch
- name: publish
uses: helaili/jekyll-action@v2
with:
token: ${{ secrets.TOKEN_SECURITY }}
target_branch: 'asf-site'