Skip to content

Commit

Permalink
Update deploy.yml to use github workspace path
Browse files Browse the repository at this point in the history
  • Loading branch information
pedelgado authored May 6, 2024
1 parent 8a96752 commit b79f85d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permissions:
contents: read

jobs:

build:

runs-on: ubuntu-latest
Expand All @@ -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:
Expand All @@ -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 }}

0 comments on commit b79f85d

Please sign in to comment.