Skip to content

Commit afeb649

Browse files
Update main.yml
1 parent 3fa039a commit afeb649

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ name: CI
44

55
# Controls when the workflow will run
66
on:
7-
# Triggers the workflow on push or pull request events but only for the master branch
8-
97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
119

1210
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1311
jobs:
14-
# This workflow contains a single job called "build"
15-
build:
12+
Build-Demo:
13+
if: ${{ github.ref == 'refs/heads/demo' }}
14+
1615
# The type of runner that the job will run on
1716
runs-on: self-hosted
1817

@@ -26,7 +25,7 @@ jobs:
2625
git clone --depth 1 -b demo https://github.com/Dynamsoft/barcode-reader-javascript-samples.git
2726
2827
- name: Sync files
29-
uses: SamKirkland/FTP-Deploy-Action@4.1.0
28+
uses: SamKirkland/FTP-Deploy-Action@4.3.0
3029
with:
3130
server: ${{ secrets.FTP_DEMO_SERVER }}
3231
username: ${{ secrets.FTP_DEMO_USERNAME }}

0 commit comments

Comments
 (0)