Trantando NPE (#1009) #301
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release Master" | |
# Run workflow on commits to the `master` branch | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
jobs: | |
release: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Java and Maven | |
uses: actions/[email protected] | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Adding ssh key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.ssh_private_key }} | |
- name: Git configuration | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Wmix CI" | |
- name: Release Maven package | |
uses: samuelmeuli/[email protected] | |
with: | |
gpg_private_key: ${{ secrets.gpg_private_key }} | |
gpg_passphrase: ${{ secrets.gpg_passphrase }} | |
nexus_username: ${{ secrets.OSSRH_USERNAME }} | |
nexus_password: ${{ secrets.OSSRH_TOKEN }} | |
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests" -P ossrh | |
- name: Publish to GitHub Packages | |
run: mvn --batch-mode deploy -P github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |