From a2d2a90e1895ba153013359c59a2892c664ca792 Mon Sep 17 00:00:00 2001 From: AmirAli Irvany Date: Wed, 19 Jun 2024 14:07:05 +0330 Subject: [PATCH 1/2] Create liara.yaml --- .github/workflows/liara.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) 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..e69de29b From dcd206b0603a2b67edaf956eaae9078a46129600 Mon Sep 17 00:00:00 2001 From: AmirAli Irvany Date: Wed, 19 Jun 2024 14:07:25 +0330 Subject: [PATCH 2/2] Update liara.yaml --- .github/workflows/liara.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/liara.yaml b/.github/workflows/liara.yaml index e69de29b..8c056de0 100644 --- a/.github/workflows/liara.yaml +++ b/.github/workflows/liara.yaml @@ -0,0 +1,20 @@ +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 }} + run: | + npm i -g @liara/cli@6 + liara deploy --app="heroapi" --api-token="$LIARA_TOKEN" --no-app-logs