From b79f85d49043cc10731ffb446e86eaa63f159358 Mon Sep 17 00:00:00 2001 From: Pedro Delgado Date: Mon, 6 May 2024 14:56:06 +0000 Subject: [PATCH] Update deploy.yml to use github workspace path --- .github/workflows/deploy.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 97e0b2a..cc33604 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,7 @@ permissions: contents: read jobs: + build: runs-on: ubuntu-latest @@ -31,9 +32,17 @@ jobs: id: build-files run: composer install --prefer-dist --no-progress - # - name: Run test suite - # run: composer run-script test + - name: Generate artifact + uses: actions/download-artifact@v4 + with: + name: kt-artifact + path: ~/kt-artifact + +deploy: + runs-on: ubuntu-latest + + steps: - name: Copy result in server uses: wlixcc/SFTP-Deploy-Action@v1.2.4 with: @@ -42,6 +51,6 @@ jobs: password: ${{ secrets.OCEBOT_HOST_PASS }} port: ${{ secrets.OCEBOT_HOST_PORT }} sftp_only: true - local_path: '${{ github.workspace }}/' + local_path: '~/kt-artifact' remote_path: ${{ secrets.KT_HOST_PATH }}