diff --git a/.github/workflows/search.yaml b/.github/workflows/search.yaml new file mode 100644 index 00000000..d56ea866 --- /dev/null +++ b/.github/workflows/search.yaml @@ -0,0 +1,28 @@ +name: Refresh Search Index +on: [page_build, workflow_dispatch] + +jobs: + search: + name: Refresh search + runs-on: ubuntu-latest + steps: + - name: check status + if: github.event_name != 'workflow_dispatch' + run: | + import os + status, errormsg = os.getenv('STATUS'), os.getenv('ERROR') + assert status == 'built', 'There was an error building the page on GitHub pages.\n\nStatus: {}\n\nError messsage: {}'.format(status, errormsg) + shell: python + env: + STATUS: ${{ github.event.build.status }} + ERROR: ${{ github.event.build.error.message }} + - name: Algolia crawler creation and crawl + if: ${{ success() }} + uses: algolia/algoliasearch-crawler-github-actions@v1.0.10 + with: + crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} + crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} + algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} + algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} + crawler-name: 'metaflow-docs' + site-url: 'https://docs.metaflow.org' diff --git a/docs/going-to-production-with-metaflow/coordinating-larger-metaflow-projects.md b/docs/going-to-production-with-metaflow/coordinating-larger-metaflow-projects.md index 314c3592..0ca53f95 100644 --- a/docs/going-to-production-with-metaflow/coordinating-larger-metaflow-projects.md +++ b/docs/going-to-production-with-metaflow/coordinating-larger-metaflow-projects.md @@ -127,7 +127,7 @@ There are scenarios where Alice might need to run multiple variants of ProjectFl Try the following: ```python -python project_flow.py --branch better_version --prodduction run +python project_flow.py --branch better_version --production run ``` The flow reports that the branch name is `prod.better_version`. You can deploy the custom branch to AWS Step Functions: