docs: update mirrors (add package managers) #540
This file contains hidden or 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: Deploy to Production | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| - name: install-dependencies | |
| run: npm ci | |
| - name: generate-llms-content | |
| env: | |
| MY_BASE_URL: ${{ secrets.MY_BASE_URL }} | |
| MY_API_KEY: ${{ secrets.MY_API_KEY }} | |
| run: | | |
| echo "Running MDX to MD conversion with git-based change detection..." | |
| npm run generate-llms | |
| - name: update-liara | |
| env: | |
| LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }} | |
| MY_BASE_URL: ${{ secrets.MY_BASE_URL }} | |
| MY_API_KEY: ${{ secrets.MY_API_KEY }} | |
| run: | | |
| npm i -g @liara/cli@7 | |
| liara deploy --app="g2-the-docs" --api-token="$LIARA_TOKEN" --platform=docker --port=80 --no-app-logs --build-arg="MY_BASE_URL=$MY_BASE_URL" --build-arg="MY_API_KEY=$MY_API_KEY" | |
| - name: Sleep for 60 seconds | |
| run: sleep 60 | |
| shell: bash | |
| - name: search-liara | |
| working-directory: ./indexer | |
| env: | |
| MEILI_PRIVATE_KEY: ${{ secrets.MEILI_PRIVATE_KEY }} | |
| MEILI_ROOT_URL: ${{ secrets.MEILI_ROOT_URL }} | |
| run: | | |
| npm i | |
| npm run start |