-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1.07 KB
/
release.yml
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
name: release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Release and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: mvn -B clean package -DskipTests
run: mvn -B clean package -DskipTests
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: SCP to Ocean
uses: appleboy/scp-action@master
with:
host: ${{ secrets.ocean_host }}
username: ${{ secrets.ocean_user }}
password: ${{ secrets.ocean_pass }}
port: ${{ secrets.ocean_port }}
source: "cwt-spring/target/cwt-spring-SNAPSHOT.jar"
strip_components: 2
target: "/var/github-release"