Skip to content

Bump actions/checkout from 3 to 4 (#53) #33

Bump actions/checkout from 3 to 4 (#53)

Bump actions/checkout from 3 to 4 (#53) #33

Workflow file for this run

name: GitHub CD
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Ruby 3.0 environment
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Build website
run: bundle exec jekyll build
- name: Test website
run: bundle exec htmlproofer --url-ignore https://www.twitter.com/trellisldp,https://twitter.com/trellisldp ./_site
- name: Sync to AWS S3
uses: jakejarvis/s3-sync-action@v0.5.1
with:
args: --acl public-read
env:
AWS_S3_BUCKET: ${{ secrets.AWS_DOCS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: "_site"
DEST_DIR: ""