Skip to content

Deploy

Deploy #1063

Workflow file for this run

name: "Deploy"
on:
push:
branches:
- master
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository.
uses: actions/checkout@v3
- name: Set up Ruby 2.4.1 and perform bundle install.
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4.1
- name: Install bundler 1.15 version.
run: gem install bundler:1.15
- name: Install dependencies.
run: bundler _1.15_ install
- name: Update apt-get.
run: sudo apt-get update
- name: Install pngquant.
run: sudo apt-get install -y pngquant
- name: Install jpegoptim.
run: sudo apt-get install -y jpegoptim
- name: Optimize images and generate static site.
run: ./scripts/cibuild.sh
- name: Deploy to GitHub pages.
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
external_repository: EducacionSiglo21/educacionsiglo21.github.io
publish_branch: master
publish_dir: _site
force_orphan: true