Skip to content

Commit

Permalink
!!release
Browse files Browse the repository at this point in the history
  • Loading branch information
rtmigo committed Oct 20, 2022
1 parent 9e2b4e6 commit 880f152
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 34 deletions.
44 changes: 11 additions & 33 deletions .github/workflows/gradle.g.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# 2022-10-20 21:50 | DO NOT EDIT. GENERATED BY ATOMATR
# 2022-10-20 22:29 | DO NOT EDIT. GENERATED BY ATOMATR
################################################################################

name: Gradle (by Atomatr)
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Get Mavence
- name: Set up Mavence
run: |
wget -O /tmp/mavence.jar https://github.com/rtmigo/mavence/releases/latest/download/mavence.jar
java -jar /tmp/mavence.jar --version
Expand Down Expand Up @@ -168,32 +168,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

assert-can-publish-to-central:
needs: [release-flag]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Check script exists
run: ls ./publish_to_maven_central.py
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: '3.10'
- name: Set up Python dependencies
run: |
pip install git+https://github.com/rtmigo/rtmaven_py
- name: Check variables
run: |
export GPG_TTY=$(tty)
rtmaven check
env:
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }}
MAVEN_GPG_PASSWORD: ${{ secrets.MAVEN_GPG_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

to-maven-central:
needs: [ to-github-release, assert-can-publish-to-central ]
needs: [ to-github-release ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -207,15 +183,17 @@ jobs:
uses: actions/setup-python@master
with:
python-version: '3.10'
- name: Set up Python dependencies
run: |
pip install git+https://github.com/rtmigo/rtmaven_py
pip install tempground

- name: Set up Mavence
run: |
wget -O /tmp/mavence.jar https://github.com/rtmigo/mavence/releases/latest/download/mavence.jar
java -jar /tmp/mavence.jar --version
- name: Publish to Maven Central
run: |
export GPG_TTY=$(tty)
python ./publish_to_maven_central.py
java -jar /tmp/mavence.jar central
env:
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }}
MAVEN_GPG_PASSWORD: ${{ secrets.MAVEN_GPG_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion test_as_maven_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_package(maven_url: str, ver: str):

def build_test_release():
js = json.loads(subprocess.check_output(
["java", "-jar", "/tmp/mavence.jar", "local", "io.github.rtmigo:precise"]))
["java", "-jar", "/tmp/mavence.jar", "local"]))
test_package(js["mavenRepo"], js["version"])
# package = stage(prepare(
# description="Kotlin/JVM compensated summation of Double sequences "
Expand Down

0 comments on commit 880f152

Please sign in to comment.