Skip to content

Commit ff5b630

Browse files
committed
update scripts
1 parent 65422a8 commit ff5b630

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ jobs:
1515
- uses: actions/checkout@v3
1616
with:
1717
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]"
2518
- name: Push change
2619
uses: ad-m/github-push-action@master
2720
with:
@@ -65,12 +58,14 @@ jobs:
6558
server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }}
6659
server-username: ${{ secrets.SERVER_USERNAME }}
6760
server-password: ${{ secrets.SERVER_PASSWORD }}
61+
target-path: '\fetched\'
62+
source-path: '\wwwroot\'
6863
- name: Backup DB
6964
run: |
7065
git config --global user.name "CD bot"
7166
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
7469
git commit -m "update db file [skip actions]"
7570
- name: Push change
7671
uses: ad-m/github-push-action@master
@@ -84,6 +79,8 @@ jobs:
8479
server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }}
8580
server-username: ${{ secrets.SERVER_USERNAME }}
8681
server-password: ${{ secrets.SERVER_PASSWORD }}
82+
target-path: '\wwwroot\'
83+
source-path: '\publish\'
8784
- name: Start App Pool
8885
uses: bogdanbrudiu/simply-web-deploy/Start@main
8986
with:

HamEvent/App_Data/dbtestfile.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

HamEvent/App_Data/dbtestfile_.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)