Skip to content

Commit

Permalink
Update liara.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi authored Aug 13, 2024
1 parent d382f73 commit 1fa734e
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/liara.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Deploy to Production
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
# name: Deploy to Production
# on:
# push:
# branches:
# - master
# jobs:
# deploy:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: update-liara
env:
LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }}
run: |
npm i -g @liara/cli@5
liara deploy --api-token="$LIARA_TOKEN" --no-app-logs
- 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:index-doc
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: "20"
# - name: update-liara
# env:
# LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }}
# run: |
# npm i -g @liara/cli@5
# liara deploy --api-token="$LIARA_TOKEN" --no-app-logs
# - 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:index-doc

0 comments on commit 1fa734e

Please sign in to comment.