-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 967 Bytes
/
deploy.yml
File metadata and controls
32 lines (30 loc) · 967 Bytes
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
name: Deploy
on:
workflow_dispatch:
workflow_run:
workflows:
- 'Test'
branches:
- master
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Build
run: 'mvn clean package'
- name: Create Release Note
run: 'sed -i "s/{{ VERSION }}/$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)/" RELEASE_NOTE.md'
- name: Release
run: 'hub release create -a "target/sql-orm-$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout).jar" -F RELEASE_NOTE.md v$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}