Skip to content

Correção português #6

Correção português

Correção português #6

Workflow file for this run

name: 🚀 Deploy on staging
on:
push:
branches:
- main_2024
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 📂 setup
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: 🔨 build staging
#uses: lemonarc/jekyll-action@1.0.0
run: |
bundle config path vendor/bundle
bundle install
bundle exec jekyll build
cp -f .htaccess _site/
- name: 🔐 Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: 🎯 Adding Known Hosts
run: ssh-keyscan -H staging.agilebrazil.com >> ~/.ssh/known_hosts
- name: 🚀 deploy on staging
run: rsync -zav --progress --delete -e 'ssh -o StrictHostKeyChecking=no' _site/ agilebrazil@staging.agilebrazil.com:staging.agilebrazil.com/2024