Skip to content

Commit c0b829f

Browse files
authored
Create maven.yml
1 parent 6675853 commit c0b829f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/maven.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build-artifact
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: '21'
16+
distribution: 'temurin'
17+
cache: maven
18+
- name: Build with Maven
19+
run: mvn -B clean package assembly:single --file pom.xml
20+
- name: Release the artifact
21+
uses: marvinpinto/action-automatic-releases@latest
22+
with:
23+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
24+
automatic_release_tag: "latest"
25+
prerelease: false
26+
title: "Built from commit ${{ github.sha }}"
27+
files: |
28+
target/HTTPSignatures.jar

0 commit comments

Comments
 (0)