Skip to content

Commit

Permalink
Changing release process
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaytotomato committed Jul 26, 2024
1 parent 1d91367 commit 5441791
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release

on:
release:
types:
- created
push:
tags:
- 'v*.*.*'

jobs:
build:
Expand Down Expand Up @@ -32,10 +32,22 @@ jobs:
${{ runner.os }}-maven-
- name: Install Maven dependencies
run: mvn install -DskipTests
run: mvn install

- name: Maven Test
run: mvn test

- name: Maven Deploy
- name: Publish to GitHub Packages
run: mvn deploy
env:
GITHUB_USERNAME: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release notes for ${{ github.ref }}.
draft: false
prerelease: false
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

<distributionManagement>
<repository>
<id>mvn-repo</id>
<id>github</id>
<name>${env.GITHUB_USERNAME}</name>
<url>https://maven.pkg.github.com/[GitHub Username]/[GitHub Repository]</url>
<url>https://maven.pkg.github.com/${env.GITHUB_USERNAME}/${env.GITHUB_REPOSITORY}</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit 5441791

Please sign in to comment.