-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.42 KB
/
deployment.yml
File metadata and controls
44 lines (35 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: UrbanDictionary Deployment
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3.10.0
with:
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
distribution: 'adopt'
java-version: '11'
- name: Build spring
run: mvn -B package --file pom.xml
working-directory: ./
- name: SFTP Deploy
# You may pin to the exact commit or the version.
# uses: wlixcc/SFTP-Deploy-Action@da88a4dbe95286266bbac3c0b2b8284048d20c8f
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
# username
username: ${{secrets.USERNAME}}
# your sftp server
server: ${{secrets.IP}}
# you can copy private_key from your *.pem file, keep format
ssh_private_key: ${{secrets.SSH}}
# will put all file under this path
local_path: ./target/urbandictionary-0.0.1-SNAPSHOT.jar
# files will copy to under remote_path
remote_path: /home/yasinsamet_ysk