Build and deploy Jekyll site to GitHub Pages #626
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: Build and deploy Jekyll site to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 1 * * *" | |
jobs: | |
github-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Info | |
run: | | |
echo ${{ github.ref }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: build calendar files | |
run: | | |
./build.sh --edit-link=https://github.com/$GITHUB_REPOSITORY | |
mv ./out/*.ics assets/calendars/ | |
- name: create posts | |
run: | | |
python _scripts/generate_posts/generate_posts.py | |
- uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- uses: helaili/jekyll-action@master # Choose any one of the Jekyll Actions | |
with: # Some relative inputs of your action | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit_author: github-actions[bot] |