You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome-chatgpt-prompts/.github/workflows/publish.yml

40 lines
842 B

name: Publish to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
2 weeks ago
uses: actions/checkout@v3
- name: Set up Ruby
2 weeks ago
uses: ruby/setup-ruby@v1
with:
2 weeks ago
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: |
2 weeks ago
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