Replace nebula-publishing for maven-publish, remove bintray release action
This commit is contained in:
29
.github/workflows/release-to-bintray.yml
vendored
29
.github/workflows/release-to-bintray.yml
vendored
@@ -1,29 +0,0 @@
|
||||
name: Release to Bintray
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v[0-9].[0-9]+.[0-9]+
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 8
|
||||
- name: Build and publish to local maven
|
||||
run: ./gradlew -Prelease.useLastTag=true release publishToMavenLocal --info
|
||||
- name: Zip and publish to Bintray
|
||||
run: |
|
||||
cd ~/.m2/repository
|
||||
zip release.zip org/openrndr/extra/*/${{ steps.get_version.outputs.VERSION }}/*
|
||||
curl -u ${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }} -X PUT https://api.bintray.com/content/openrndr/openrndr/ \
|
||||
-H "X-Bintray-Package:orx" \
|
||||
-H "X-Bintray-Version:${{ steps.get_version.outputs.VERSION }}" \
|
||||
-H "X-Bintray-Publish:1" \
|
||||
-H "X-Bintray-Override:1" \
|
||||
-H "X-Bintray-Explode:1" \
|
||||
-T release.zip
|
||||
27
.github/workflows/release-to-maven-central.yml
vendored
Normal file
27
.github/workflows/release-to-maven-central.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Release to Bintray
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v[0-9].[0-9]+.[0-9]+
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 8
|
||||
- name: Build and publish to local maven
|
||||
run: ./gradlew -Prelease.useLastTag=true build
|
||||
- name: Decode
|
||||
run: |
|
||||
echo "${{secrets.SIGNING_SECRET_KEY_RING_FILE}}" > ~/.gradle/secring.gpg.b64
|
||||
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
|
||||
- name: Publish
|
||||
run: ./gradlew publish -Prelease.useLastTag=true -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_KEY_PASSWORD}} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg)
|
||||
env:
|
||||
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
|
||||
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
|
||||
Reference in New Issue
Block a user