forked from joelhockey/jacknji11
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 921 Bytes
/
release.yaml
File metadata and controls
34 lines (34 loc) · 921 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
33
34
name: Create a release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: false
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build
run: |
mvn --no-transfer-progress -DskipTests package
- name: Release
uses: softprops/action-gh-release@master
with:
files: target/*.jar
- name: Publish package
run: mvn --no-transfer-progress -DskipTests deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}