Skip to content

Commit

Permalink
do backup
Browse files Browse the repository at this point in the history
EvilBabyDemon authored Apr 16, 2024
1 parent 6cdb634 commit bf82631
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -26,7 +26,15 @@ jobs:
mvn -B package --file pom.xml
mkdir staging && cp target/*.jar staging
cd target && ls
- name: Move old BabysBaby.jar to a save place
uses: garygrossgarten/github-action-ssh@release
with:
command: mkdir --parents ${{ secrets.TARGET_DIRECTORY }}/oldVersions/$(date +%Y%m%d_%H%M%S) && mv ${{ secrets.TARGET_DIRECTORY }}/BabysBaby.jar $_
host: ${{ secrets.VSOS_IP_ADDRESS }}
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.SSH_KEY }}


- name: Deploy BabysBaby.jar to server
uses: garygrossgarten/github-action-scp@release

0 comments on commit bf82631

Please sign in to comment.