diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml new file mode 100644 index 0000000..92ceef8 --- /dev/null +++ b/.github/workflows/maven-release.yml @@ -0,0 +1,50 @@ +name: Maven Release Build + +# This lets you trigger the build manually from the GitHub Actions tab +on: + workflow_dispatch: + inputs: + releaseVersion: + description: 'Release Version (e.g., 1.0.0)' + required: true + developmentVersion: + description: 'Next Dev Version (e.g., 1.0.1-SNAPSHOT)' + required: true + +jobs: + release: + runs-on: ubuntu-latest + + # Crucial: Give the action permission to push commits and tags back to the repo + permissions: + contents: write + packages: write + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + # You need to fetch all history so the release plugin can see tags + fetch-depth: 0 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' # Change this to your Java version + distribution: 'temurin' + server-id: github # Must match the in your distributionManagement + server-username: GITHUB_ACTOR + server-password: GITHUB_TOKEN + + - name: Configure Git User + run: | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + + - name: Perform Maven Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + mvn -B release:prepare release:perform \ + -DreleaseVersion=${{ github.event.inputs.releaseVersion }} \ + -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} diff --git a/pom.xml b/pom.xml index 17f5e42..84061c6 100644 --- a/pom.xml +++ b/pom.xml @@ -8,6 +8,20 @@ comfyuimodel-downloader 1.0-SNAPSHOT + + scm:git:https://github.com/thomaskippster/comfymodeldownloader.git + scm:git:https://github.com/thomaskippster/comfymodeldownloader.git + HEAD + + + + + github + GitHub Packages + https://maven.pkg.github.com/thomaskippster/comfymodeldownloader + + + UTF-8