Skip to content

CI: Use Ruby 3.3 for html-proofer #68

CI: Use Ruby 3.3 for html-proofer

CI: Use Ruby 3.3 for html-proofer #68

Workflow file for this run

name: Publish
on: [push, pull_request]
jobs:
build:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Build
run: |
scripts/build.sh
- name: Proofing
run: scripts/test.sh
- name: Deploy
if: ${{ github.event_name == 'push' && github.repository == 'polychromatic/website' && github.ref == 'refs/heads/master' }}
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
run: |
sudo apt-get install rsync
mkdir -p $HOME/.ssh/
chmod 700 $HOME/.ssh/
echo -n "${{ secrets.SSH_CONFIG }}" > $HOME/.ssh/config
echo -n "${{ secrets.SSH_KEY }}" > $HOME/.ssh/id_rsa
echo -n "${{ secrets.SSH_KNOWN_HOSTS }}" > $HOME/.ssh/known_hosts
chmod 600 $HOME/.ssh/id_rsa
scripts/deploy.sh