Skip to content

updated dependencies #7

updated dependencies

updated dependencies #7

name: Publish to mavenCentral
# Controls when the workflow will run
on:
# Run this workflow automatically when a branch starting with "releases/" is pushed
push:
branches:
- releases/**
tags:
- v**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Create gpg file
run:
# Files in $HOME (/home/runner/) in github actions are maintained for the full job duration
echo "${{secrets.SONATYPE_GPG_CONTENT}}" | base64 -d > /home/runner/private.pgp
- name: Build
run:
make assembleLibrary
- name: Publish
run:
make publish
env:
SONATYPE_USER: '${{secrets.SONATYPE_USER}}'
SONATYPE_PWD: '${{secrets.SONATYPE_PWD}}'
SONATYPE_GPG_KEY: '${{secrets.SONATYPE_GPG_KEY}}'
SONATYPE_GPG_PWD: '${{secrets.SONATYPE_GPG_PWD}}'
SONATYPE_GPG_PATH: "/home/runner/private.pgp"
- name: Cleanup
run:
rm -f /home/runner/private.pgp