Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
indpurvesh committed Jun 25, 2024
1 parent 208655b commit 225698b
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,41 +28,16 @@ jobs:
deploy:
needs: build
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: 'react-admin'

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: npm ci
- name: Run releases
run: npm run build
# - name: Copy files via ssh
# uses: appleboy/scp-action@master
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.SSH_KEY }}
# source: "./dist"
# target: ${{ secrets.REACT_TARGET_PATH }}
#
- name: Copy files via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
source: "./react-admin/dist"
source: "./dist"
target: ${{ secrets.REACT_TARGET_PATH }}

- name: change file ownership
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
script: sudo chown -R www-data:www-data ${{ secrets.REACT_TARGET_PATH}}

0 comments on commit 225698b

Please sign in to comment.