Skip to content

Load index.json from the CDN instead of copying it to the app origin #7

Load index.json from the CDN instead of copying it to the app origin

Load index.json from the CDN instead of copying it to the app origin #7

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Heroku
runs-on: ubuntu-24.04
if: github.repository == 'freeCodeCamp/devdocs'
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
with:
fetch-depth: 0 # Heroku rejects shallow pushes
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Install Heroku CLI
run: |
curl https://cli-assets.heroku.com/install.sh | sh
- name: Deploy to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
heroku --version
heroku stack:set heroku-26 --app devdocs
heroku git:remote --app devdocs
# no --force; --force should never be necessary
git push heroku HEAD:main