From b6ff83299a0bbdf0359468b441275f8cf40cce6a Mon Sep 17 00:00:00 2001 From: Clyde Date: Mon, 16 Sep 2024 13:19:28 -0700 Subject: [PATCH] added steps to yml file to set up rails credentials --- .github/workflows/rubyonrails.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml index ae26c76..e0b5793 100644 --- a/.github/workflows/rubyonrails.yml +++ b/.github/workflows/rubyonrails.yml @@ -37,6 +37,13 @@ jobs: # Add or replace database setup steps here - name: Set up database schema run: bin/rails db:schema:load + # + - name: Set up Rails credentials + run: | + mkdir -p ~/.rails + echo "${{ secrets.RAILS_CREDENTIALS_CONTENT }}" > ~/.rails/credentials.yml.enc + echo "${{ secrets.RAILS_MASTER_KEY }}" > ~/.rails/master.key + # Add or replace test runners here - name: Run tests run: bin/rake