Skip to content

Commit 6d7f80b

Browse files
committed
update workflow and split it into pipelines
1 parent bfaad48 commit 6d7f80b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Diff for: .github/workflows/demo-workflow.yml

+21
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,24 @@ jobs:
5656
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5757
shell: bash
5858

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+

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
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)

0 commit comments

Comments
 (0)