File tree Expand file tree Collapse file tree 11 files changed +98
-77
lines changed Expand file tree Collapse file tree 11 files changed +98
-77
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 4
4
name : Java CI with Maven
5
5
6
6
on :
7
- push :
8
- branches : [ master ]
9
7
pull_request :
10
8
branches : [ master ]
11
9
Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change 1
1
HAP-Java
2
2
=========
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
+
3
7
HAP-Java is a Java implementation of the HomeKit Accessory Protocol.
4
8
5
9
Using this library, you can create your own HomeKit Accessory or HomeKit Accessory Bridge.
Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments