Mobile menu cutoff bug fix (#277) #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy to heroku production. | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build_and_deploy_app: | |
runs-on: ubuntu-latest | |
environment: "prod" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- run: npm i | |
- run: npm run test | |
- run: npm run build | |
env: | |
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }} | |
AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }} | |
AUTH0_REDIRECT_URI: ${{ secrets.AUTH0_REDIRECT_URI }} | |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
GOOGLE_ANALYTICS_GA4_ID: ${{ secrets.GOOGLE_ANALYTICS_GA4_ID }} | |
ALGOLIA_INDEX_PREFIX: ${{ secrets.ALGOLIA_INDEX_PREFIX }} | |
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} | |
ALGOLIA_READ_ONLY_API_KEY: ${{ secrets.ALGOLIA_READ_ONLY_API_KEY }} | |
STRAPI_API_TOKEN: ${{ secrets.STRAPI_API_TOKEN }} | |
STRAPI_API_URL: ${{ secrets.STRAPI_API_URL }} | |
- name: Build, Push and Release a Docker container to Heroku. | |
uses: gonuit/heroku-docker-deploy@v1.3.3 | |
with: | |
email: ${{ secrets.HEROKU_EMAIL }} | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} | |
dockerfile_directory: ./ | |
dockerfile_name: Dockerfile | |
docker_options: "--no-cache" | |
process_type: web |