Deploy via Jekyll on GitHub pages #1367
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy via Jekyll on GitHub pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'website/**' | |
- 'documentation/**' | |
- '.github/workflows/jekyll.yml' | |
schedule: | |
- cron: '0 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Use GitHub Actions' cache to shorten build times and decrease load on servers | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Install dependencies | |
run: sudo apt-get -y update && sudo apt-get install -y ruby ruby-dev && sudo gem install bundler && sudo bundle install | |
- name: Build asciidoc | |
run: bash -x build.sh | |
- uses: helaili/jekyll-action@v2 | |
with: | |
target_path: / | |
keep_history: true | |
target_branch: gh-pages | |
token: ${{ secrets.GITHUB_TOKEN }} | |
jekyll_src: website |