File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 56
56
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
57
57
shell : bash
58
58
59
+ deploy :
60
+ runs-on : ubuntu-latest
61
+ name : Deploy the JAR file to the remote server
62
+ needs : build
63
+ steps :
64
+ - uses : actions/checkout@v2
65
+ - name : Set up JDK 1.8
66
+ uses : actions/setup-java@v1
67
+ with :
68
+ java-version : 1.8
69
+ - name : Generate the package
70
+ run : mvn -B package --file pom.xml -Dmaven.test.skip=true
71
+ - name : Deploy the package to the remote server
72
+ uses : garygrossgarten/github-action-scp@release
73
+ with :
74
+ local : target/workflow-github-actions-1.0-SNAPSHOT.jar
75
+ remote : hacene/demo/actions # My remote directory
76
+ host : ${{ secrets.HOST }}
77
+ username : ${{ secrets.SSH_USER }}
78
+ password : ${{ secrets.SSH_PASSWORD }}
79
+
Original file line number Diff line number Diff line change 1
- [ ![ codecov] ( https://codecov.io/gh/kasdihacene/workflow-github-actions/branch/master/graph/badge.svg )] ( https://codecov.io/gh/kasdihacene/workflow-github-actions )
1
+ [ ![ codecov] ( https://codecov.io/gh/kasdihacene/workflow-github-actions/branch/master/graph/badge.svg )] (https://codecov.io/gh/kasdihacene/workflow-
2
+ github-actions)
You can’t perform that action at this time.
0 commit comments