This commit is contained in:
Kirk Pepperdine 2021-09-22 11:11:50 -07:00
Родитель 144889134d
Коммит 9cc4ab6775
1 изменённых файлов: 8 добавлений и 10 удалений

18
.github/workflows/publish.yml поставляемый
Просмотреть файл

@ -1,8 +1,12 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
workflow_dispatch:
inputs:
branch:
description: "Branch to release from"
required: true
default: "main"
jobs:
publish:
@ -39,14 +43,8 @@ jobs:
git config user.name "GitHub Actions"
- name: Release
run: ./mvnw -B release:prepare release:perform -Drelease=true
run: ./mvnw -Darguments="-Drelease=true" -B release:prepare release:perform -Drelease=true
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_NAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Bump pom version
run : git push
- name: Push tags
run: git push --tags
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}