Skip to content

Commit

Permalink
release workflow wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Mar 23, 2024
1 parent 73ef879 commit 7cd7b9c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B clean install --file pom.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
#- name: Update dependency graph
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Izanami Java client

on:
push:
tags:
- 2.**

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: GitHub Tag Name example
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
#- name: Release
# uses: qcastel/github-actions-maven-release@v1.12.41
# env:
# JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
# with:
# release-branch-name: "main"
# git-release-bot-name: "Benjamin Cavy"
# git-release-bot-email: "benjamin.cavy@gmail.com"
# maven-args: "-Dmaven.deploy.skip=true"
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
# gpg-enabled: true
# gpg-key-id: ${{ secrets.GPG_KEY_ID }}
# gpg-key: ${{ secrets.GPG_KEY }}
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
<doclint>all,-missing</doclint>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 7cd7b9c

Please sign in to comment.