Skip to content

Commit

Permalink
commenting out since algolia is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
elreydetoda committed Sep 14, 2024
1 parent c88dca2 commit 4c2b9bf
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,39 +88,39 @@ jobs:
name: algolia-data
path: /tmp/gh-pages/algolia.json

auto_actions:
name: Actions to update Algolia after site's been deployed
runs-on: ubuntu-latest
needs: prod
# https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#using-an-environment
environment: production
container:
image: docker.io/python:3.11-slim

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install pipenv
run: pip install pipenv

- uses: actions/setup-python@v3
with:
python-version: "3.11"
cache: "pipenv"

- name: installing pipenv packages
run: cd .github/repo_ci-cd/deployment/ && pipenv sync

- name: downloading algolia data
uses: actions/download-artifact@v3
with:
name: algolia-data

- name: Update Algolia index
run: cd .github/repo_ci-cd/deployment/ && pipenv run ./algolia.py
# https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
# auto_actions:
# name: Actions to update Algolia after site's been deployed
# runs-on: ubuntu-latest
# needs: prod
# # https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#using-an-environment
# environment: production
# container:
# image: docker.io/python:3.11-slim

# steps:
# - name: Checkout Code
# uses: actions/checkout@v2

# - name: Install pipenv
# run: pip install pipenv

# - uses: actions/setup-python@v3
# with:
# python-version: "3.11"
# cache: "pipenv"

# - name: installing pipenv packages
# run: cd .github/repo_ci-cd/deployment/ && pipenv sync

# - name: downloading algolia data
# uses: actions/download-artifact@v3
# with:
# name: algolia-data

# - name: Update Algolia index
# run: cd .github/repo_ci-cd/deployment/ && pipenv run ./algolia.py
# # https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow
# env:
# ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
# ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
# ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}

0 comments on commit 4c2b9bf

Please sign in to comment.