@@ -16,27 +16,23 @@ jobs:
1616 # This workflow contains a single job called "build"
1717 build :
1818 # The type of runner that the job will run on
19- runs-on : ubuntu-latest
19+ runs-on : self-hosted
2020
2121 # Steps represent a sequence of tasks that will be executed as part of the job
2222 steps :
23- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24- - uses : actions/checkout@v2
25-
26- - name : ftp-action
27- # You may pin to the exact commit or the version.
28- # uses: sebastianpopp/ftp-action@eb75c5cb29d23ee4a729720a27dfb66403cb0f6d
29- uses :
sebastianpopp/[email protected] 23+ # Runs a set of commands using the runners shell
24+ - name : Get Source
25+ run : |
26+ cd /home/ubuntu
27+ [ -d barcode-reader-javascript-samples ] && cd barcode-reader-javascript-samples && git pull https://github.com/Dynamsoft/barcode-reader-javascript-samples.git
28+ [ ! -d barcode-reader-javascript-samples ] && git clone --depth 1 https://github.com/Dynamsoft/barcode-reader-javascript-samples.git && cd barcode-reader-javascript-samples
29+
30+ - name : Sync files
31+ uses :
SamKirkland/[email protected] 3032 with :
31- # FTP host
32- host : demo.dynamsoft.com:2122
33- # FTP user
34- user : websitecontentmanage
35- # FTP password
33+ server : ${{ secrets.FTP_DEMO_SERVER }}
34+ username : ${{ secrets.FTP_DEMO_USERNAME }}
3635 password : ${{ secrets.FTP_DEMO_PASSWORD }}
37- # Force SSL encryption
38- # forceSsl: # optional, default is false
39- # Local directory
40- # localDir: # optional, default is .
41- # Remote directory
42- remoteDir : /demo.dynamsoft.com/Samples/DBR/JS/
36+ port : 2122
37+ local-dir : /home/ubuntu/barcode-reader-javascript-samples/
38+ server-dir : /demo.dynamsoft.com/Samples/DBR/JS/
0 commit comments