Skip to content

Precompile assets in RAILS_ENV=production in GH actions #1892

Precompile assets in RAILS_ENV=production in GH actions

Precompile assets in RAILS_ENV=production in GH actions #1892

Workflow file for this run

name: Assets
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
assets:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build assets
env:
DISABLE_SES: true
RAILS_ENV: production
run: bin/rake assets:precompile