Atualização da equipe #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
- name: Use Node.js 🔧 | |
uses: actions/setup-node@v1 | |
with: { node-version: '16.x' } | |
- name: Use Ruby 🔧 | |
uses: ruby/setup-ruby@v1 | |
with: { ruby-version: '2.7.6' } | |
- name: Setup dependencies 🔧 | |
run: | | |
npm install | |
bundle config set path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Resize images for production 🔧 | |
run: | | |
sudo apt-get install -y imagemagick | |
mogrify -resize 300 ./assets/images/team/*[.png,.jpg,.jpeg,.PNG,.JPG,.JPEG] | |
mogrify -resize 600 ./assets/images/posts/*[.png,.jpg,.jpeg,.PNG,.JPG,.JPEG] | |
- name: Build 🔧 | |
run: | | |
bundle exec jekyll build | |
- name: Deploy to gh-pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: _site |