Deploy via Jekyll on GitHub pages #947
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: | |
- source | |
schedule: | |
- cron: '0 0 * * *' | |
# TODO: permissions defined | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
if: github.repository == 'metal3-io/metal3-io.github.io' | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- uses: iranzo/gh-pages-jekyll-action@d27999d323a83e1989f4b62f5176f0b4736066d3 # 1.0.2 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
SOURCE_FOLDER: ./ | |
GH_PAGES_BRANCH: master |