forked from dflib/jjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58b743c
commit a3c2425
Showing
3 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'create release' | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
prepare-release: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
tag: ${{ steps.vars.outputs.tag }} | ||
version: ${{ steps.vars.outputs.version }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
|
||
steps: | ||
- name: Checkout... | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build and test... | ||
run: mvn clean verify -U | ||
|
||
- name: Set version... | ||
id: vars | ||
run: | | ||
RELEASE_TAG=${GITHUB_REF#refs/*/} | ||
echo "tag=${RELEASE_TAG}" >> $GITHUB_OUTPUT | ||
echo "version=${RELEASE_TAG}" >> $GITHUB_OUTPUT | ||
- name: Create release... | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ steps.vars.outputs.tag }} | ||
body: JJava ${{ steps.vars.outputs.version }} release | ||
draft: true | ||
prerelease: false | ||
files: ./target/jjava-${{ steps.vars.outputs.version }}.zip | ||
fail_on_unmatched_files: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ target/ | |
.project | ||
.settings | ||
*.iml | ||
release.properties | ||
*.releaseBackup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.dflib</groupId> | ||
|
@@ -25,7 +23,7 @@ | |
<connection>scm:git:https://github.com/dflib/jjava</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/dflib/jjava</developerConnection> | ||
<url>https://github.com/dflib/jjava</url> | ||
<tag>HEAD</tag> | ||
<tag>${project.version}</tag> | ||
</scm> | ||
|
||
<dependencies> | ||
|
@@ -133,6 +131,14 @@ | |
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>3.0.1</version> | ||
<configuration> | ||
<tagNameFormat>@{project.version}</tagNameFormat> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |