File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : CI
4+
5+ # Controls when the workflow will run
6+ on :
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
9+
10+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+ jobs :
12+ # This workflow contains a single job called "build"
13+ Build-Demo :
14+ if : ${{ github.ref == 'refs/heads/demo' }} # The type of runner that the job will run on
15+ runs-on : self-hosted
16+
17+ # Steps represent a sequence of tasks that will be executed as part of the job
18+ steps :
19+ # Runs a set of commands using the runners shell
20+ - name : Get Source
21+ run : |
22+ cd /home/ubuntu
23+ [ -d barcode-reader-javascript-samples ] && rm -rf barcode-reader-javascript-samples
24+ git clone --depth 1 -b demo https://github.com/Dynamsoft/barcode-reader-javascript-samples.git
25+
26+ - name : Sync files
27+ uses : SamKirkland/FTP-Deploy-Action@4.3.0
28+ with :
29+ server : ${{ secrets.FTP_DEMO_SERVER }}
30+ username : ${{ secrets.FTP_DEMO_USERNAME }}
31+ password : ${{ secrets.FTP_DEMO_PASSWORD }}
32+ port : 21
33+ local-dir : /home/ubuntu/barcode-reader-javascript-samples/
34+ server-dir : /demo.dynamsoft.com/Samples/DBR/JS/
You can’t perform that action at this time.
0 commit comments