|
15 | 15 | - uses: actions/checkout@v3 |
16 | 16 | with: |
17 | 17 | submodules: recursive |
18 | | - - name: Commit and push changes |
19 | | - run: | |
20 | | - git config --global user.name "CD bot" |
21 | | - git config --global user.email "" |
22 | | - echo %date% %time% >> HamEvent/App_Data/dbtestfile.txt |
23 | | - git add HamEvent/App_Data/dbtestfile.txt |
24 | | - git commit -m "update db file [skip actions]" |
25 | 18 | - name: Push change |
26 | 19 | uses: ad-m/github-push-action@master |
27 | 20 | with: |
@@ -65,12 +58,14 @@ jobs: |
65 | 58 | server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }} |
66 | 59 | server-username: ${{ secrets.SERVER_USERNAME }} |
67 | 60 | server-password: ${{ secrets.SERVER_PASSWORD }} |
| 61 | + target-path: '\fetched\' |
| 62 | + source-path: '\wwwroot\' |
68 | 63 | - name: Backup DB |
69 | 64 | run: | |
70 | 65 | git config --global user.name "CD bot" |
71 | 66 | git config --global user.email "" |
72 | | - echo %date% %time% >> HamEvent/App_Data/dbtestfile_.txt |
73 | | - git add HamEvent/App_Data/dbtestfile_.txt |
| 67 | + copy fetched/App_Data/QSOs.db HamEvent/App_Data/QSOs_new.db |
| 68 | + git add HamEvent/App_Data/QSOs_new.db |
74 | 69 | git commit -m "update db file [skip actions]" |
75 | 70 | - name: Push change |
76 | 71 | uses: ad-m/github-push-action@master |
|
84 | 79 | server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }} |
85 | 80 | server-username: ${{ secrets.SERVER_USERNAME }} |
86 | 81 | server-password: ${{ secrets.SERVER_PASSWORD }} |
| 82 | + target-path: '\wwwroot\' |
| 83 | + source-path: '\publish\' |
87 | 84 | - name: Start App Pool |
88 | 85 | uses: bogdanbrudiu/simply-web-deploy/Start@main |
89 | 86 | with: |
|
0 commit comments