forked from StartBootstrap/startbootstrap-clean-blog-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.15 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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