We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126f6fd commit 772c3cfCopy full SHA for 772c3cf
.github/workflows/validate.yml
@@ -5,6 +5,10 @@ on:
5
branches:
6
- "*"
7
8
+ push:
9
+ branches:
10
+ - main # Runs on push to main
11
+
12
jobs:
13
validate:
14
runs-on: ubuntu-latest
@@ -26,3 +30,13 @@ jobs:
26
30
27
31
- name: Run Security Audit
28
32
run: yarn audit --level moderate
33
34
+ - name: Copy files to the server via SFTP
35
+ if: github.ref == 'refs/heads/main'
36
+ uses: wlixcc/[email protected]
37
+ with:
38
+ server: ${{ secrets.NEUROJ_SERVER }}
39
+ username: ${{ secrets.NEUROJ_SERVER_USER }}
40
+ ssh_private_key: ${{ secrets.NEUROJ_SERVER_SSH_KEY }}
41
+ local_path: "./*"
42
+ remote_path: "/var/www/html/dev/${{ github.actor }}/"
0 commit comments