| name: Compilation of the Webpage |
| |
| on: |
| push: |
| branches: |
| - develop |
| |
| jobs: |
| jekyll: |
| runs-on: ubuntu-16.04 |
| steps: |
| - uses: actions/checkout@v2 |
| |
| - name: update_url |
| run : | |
| URL="https://wayang.staged.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-staging' |