Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pkriens committed Feb 19, 2020
1 parent 3b5dbd5 commit 08f77f4
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ name: CI Build

on:
push:
branches-ignore: [ 'master' ]
pull_request:

env:
LC_ALL: en_US.UTF-8
GRADLE_OPTS: -Dorg.gradle.parallel=false
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

jobs:
build:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI Release

on:
push:
branches: [ 'master' ]
env:
LC_ALL: en_US.UTF-8
GRADLE_OPTS: -Dorg.gradle.parallel=false
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

jobs:
build:
name: build on OpenJDK Linux
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v1
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build
shell: bash
run: echo $SONATYPE_PASSWORD;./gradlew release
15 changes: 14 additions & 1 deletion cnf/build.bnd
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@

Bundle-Version: 1.0.0.${tstamp}
Bundle-Version: 1.0.0.${tstamp}-SNAPSHOT

-remoteworkspace true
-runfw: org.apache.felix.framework
-runee: JavaSE-1.8

-plugin.8.nexus: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
snapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'; \
releaseUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'; \
noupdateOnRelease=true; \
name="Sonatype"

-releaserepo: Sonatype

-groupid: biz.aQute
-connection-settings: \
server;id=https://oss.sonatype.org;username=${env;SONATYPE_USERNAME;};password=${env;SONATYPE_PASSWORD;}, \
-bnd
2 changes: 1 addition & 1 deletion com.example.playground/bnd.bnd
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
org.apache.felix.configadmin;version='[1.9.16,1.9.17)',\
org.apache.felix.metatype;version='[1.2.2,1.2.3)',\
osgi.enroute.webconsole.xray.provider;version='[2.2.0,2.2.1)'
-resolve: beforelaunch
-resolve: auto

0 comments on commit 08f77f4

Please sign in to comment.