Skip to content

Commit df63574

Browse files
authored
Merge pull request #140 from andylintner/artifact-upload
Setup for release
2 parents b090400 + fc882b9 commit df63574

File tree

11 files changed

+98
-77
lines changed

11 files changed

+98
-77
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven and Deploy
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up JDK 11 for Maven Central
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: '11'
21+
architecture: x64
22+
server-id: ossrh
23+
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
24+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
25+
server-username: MAVEN_USERNAME
26+
server-password: MAVEN_CENTRAL_TOKEN
27+
- name: Publish to Maven Central
28+
run: mvn deploy
29+
env:
30+
MAVEN_USERNAME: hap-java-dev
31+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
32+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
33+
- name: Publish site
34+
run: mvn deploy-site

.github/workflows/maven.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
name: Java CI with Maven
55

66
on:
7-
push:
8-
branches: [ master ]
97
pull_request:
108
branches: [ master ]
119

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Stage Release on Master Branch
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
releaseVersion:
10+
description: Version to release
11+
required: true
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: '11'
24+
architecture: x64
25+
server-id: ossrh
26+
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
27+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
28+
server-username: MAVEN_USERNAME
29+
server-password: MAVEN_CENTRAL_TOKEN
30+
- name: Setup git profile
31+
run: |
32+
git config user.name github-actions
33+
git config user.email [email protected]
34+
- name: Maven release
35+
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Possrh
36+
env:
37+
MAVEN_USERNAME: hap-java-dev
38+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
39+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
HAP-Java
22
=========
3+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.hap-java/hap/badge.svg)](https://search.maven.org/search?q=g:io.github.hap-java%20a:hap)
4+
[![MIT License](https://img.shields.io/github/license/hap-java/HAP-Java)](https://github.com/hap-java/HAP-Java/blob/master/LICENSE)
5+
![Maven Build Status](https://github.com/andylintner/HAP-Java/actions/workflows/maven.yml/badge.svg)
6+
37
HAP-Java is a Java implementation of the HomeKit Accessory Protocol.
48

59
Using this library, you can create your own HomeKit Accessory or HomeKit Accessory Bridge.

RELEASING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# How to release HAP-Java
2+
3+
These actions can only be performed by someone with maintainer level access to the repository.
4+
5+
1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action
6+
2. After this completes, find the release on the [Releases page](https://github.com/hap-java/HAP-Java/releases)
7+
3. Edit the release to include the changelog details

deploy/distribution.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

deploy/publish.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

deploy/pubring.gpg.enc

-253 KB
Binary file not shown.

deploy/secring.gpg.enc

-5.39 KB
Binary file not shown.

deploy/settings.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)