From 2966d55f7f0bc71694c1ba192307980a45314ec4 Mon Sep 17 00:00:00 2001 From: Parisa Samimi Date: Thu, 21 Mar 2024 11:27:10 +0100 Subject: [PATCH] CD --- .github/workflows/liara.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/liara.yaml diff --git a/.github/workflows/liara.yaml b/.github/workflows/liara.yaml new file mode 100644 index 00000000..4af6a8ed --- /dev/null +++ b/.github/workflows/liara.yaml @@ -0,0 +1,24 @@ +name: CD-Liara +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "18" + - name: update-liara + env: + LIARA_TOKEN: ${{ secrets.LIARA_API_TOKEN }} + LIARA_BACKEND_APP_NAME: ${{secrets.LIARA_BACKEND_APP_NAME}} + LIARA_FRONTEND_APP_NAME: ${{secrets.LIARA_FRONTEND_APP_NAME}} + run: | + npm i -g @liara/cli@5 + cd backend && liara deploy --port="80" --app="$LIARA_BACKEND_APP_NAME" --api-token="$LIARA_TOKEN" --no-app-logs + cd ../frontend && liara deploy --port="80" --app="$LIARA_FRONTEND_APP_NAME" --api-token="$LIARA_TOKEN" --no-app-logs +