From fd540b2e52c4a9ec03287945e87e93b4195f7e63 Mon Sep 17 00:00:00 2001 From: Cesar Ferreyra-Mansilla Date: Mon, 28 Oct 2024 13:53:59 -0400 Subject: [PATCH] -chore: set up github actions for deploy -chore: include ruby verison in gemfile --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ Gemfile | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..11ea09e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy Jekyll site to GitHub Pages + +on: + push: + branches: [] # (currently disabled) Trigger on pushes to the source branch + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1.3' # Use your required Ruby version + + - name: Install dependencies + run: | + gem install bundler + bundle install + + - name: Build Jekyll 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 diff --git a/Gemfile b/Gemfile index f240164..cfe60b8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source "https://rubygems.org" +ruby '3.1.3' + # gem "webrick" gem 'rexml', '~> 3.2', '>= 3.2.4'