diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 06b8d80..101648a 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -23,17 +23,10 @@ jobs: - uses: ./.github/actions/setup-languages - name: Restore asset cache - uses: actions/cache@v4 + uses: actions/cache/restore@v4 with: key: cache-staging-assets - path: | - public/assets - - - name: Precompile assets and clean old versions - env: - RAILS_ENV: staging - SECRET_KEY_BASE_DUMMY: 1 - run: ./bin/rake assets:precompile && ./bin/rake assets:clean + path: public/assets - name: Terraform apply uses: dflook/terraform-apply@v1 diff --git a/.github/workflows/terraform-staging.yml b/.github/workflows/terraform-staging.yml index 7e2a556..d87e68e 100644 --- a/.github/workflows/terraform-staging.yml +++ b/.github/workflows/terraform-staging.yml @@ -29,6 +29,18 @@ jobs: with: path: terraform + - uses: ./.github/actions/setup-languages + - name: Use asset cache + uses: actions/cache@v4 + with: + key: cache-staging-assets + path: public/assets + - name: Precompile assets and clean old versions + env: + RAILS_ENV: staging + SECRET_KEY_BASE_DUMMY: 1 + run: ./bin/rake assets:precompile && ./bin/rake assets:clean + - name: terraform plan uses: dflook/terraform-plan@v1 env: