diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1e4f912..fa4ffa2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 }}