Skip to content

Merge pull request #700 from music-encoding/dependabot/github_actions… #326

Merge pull request #700 from music-encoding/dependabot/github_actions…

Merge pull request #700 from music-encoding/dependabot/github_actions… #326

Workflow file for this run

name: Build website with Jekyll
on:
push:
branches: [main]
permissions:
contents: read
jobs:
build_jekyll:
runs-on: ubuntu-latest
if: github.repository_owner == 'music-encoding'
permissions:
contents: write
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
# Build Jekyll to the specified target branch
- uses: helaili/jekyll-action@c1527523361ec3ecc54b2371ddef44826e28c0f5 # v2.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'