Skip to content

Commit

Permalink
Deploy artifact to Github release
Browse files Browse the repository at this point in the history
  • Loading branch information
replydev committed Jan 29, 2023
1 parent f2ee6ff commit d6cfcd6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release artifact with Maven

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: "19"
distribution: "temurin"
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Run unit tests
run: mvn test

- name: Upload artifact to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/quboscanner*.jar
file_glob: true
tag: ${{ github.ref }}
overwrite: true

0 comments on commit d6cfcd6

Please # to comment.