Skip to content

Commit 3bf0949

Browse files
committed
chore: add github workflow
1 parent 100547e commit 3bf0949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
servicelist=$element
103103
break
104104
fi
105-
buildlist=${buildlist},${element}
106105
if ! (CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o $element $service_type/$element/$element.go) then
107106
echo "build $element failed"
108107
exit 1
@@ -119,12 +118,13 @@ jobs:
119118
servicelist=$element
120119
exit 1
121120
fi
121+
buildlist=${buildlist},${element}
122122
done
123123
echo "buildlist=$buildlist" >> $GITHUB_OUTPUT
124124
125125
# https://github.com/appleboy/ssh-action
126126
- name: Deploy to server
127-
if: steps.commit.outputs.servicelist != '' && steps.build.outputs.buildlist != '' && ${{ inputs.deploy }} == 'true'
127+
if: steps.commit.outputs.servicelist != '' && steps.build.outputs.buildlist != '' && ${{ env.DEPLOY }} == 'true'
128128
uses: appleboy/ssh-action@v1
129129
with:
130130
# host: ${{ secrets.HOST }}

0 commit comments

Comments
 (0)