awesome-chatgpt-prompts/.github/workflows/publish.yml

40 lines
842 B
YAML
Raw Normal View History

name: Publish to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
2025-01-05 21:33:11 +00:00
uses: actions/checkout@v3
- name: Set up Ruby
2025-01-05 21:33:11 +00:00
uses: ruby/setup-ruby@v1
with:
2025-01-05 21:33:11 +00:00
ruby-version: '3.2'
bundler-cache: true # This will cache dependencies
- name: Update Bundler
run: |
gem update --system
bundle update --bundler
- name: Install dependencies
run: |
2025-01-05 21:33:11 +00:00
rm -f Gemfile.lock # Remove existing lockfile
bundle install
- name: Build site
run: bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site