v2.0.1 #98
Workflow file for this run
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: Logback Appender Maven CI | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
GPG_KEY: ${{ secrets.GPG_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
MVN_MASTER_PASSWORD: ${{ secrets.MVN_MASTER_PASSWORD }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Java and Maven | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Create settings-security.xml | |
run: | | |
echo '<settingsSecurity>' > ~/.m2/settings-security.xml | |
echo " <master>${{ secrets.MVN_MASTER_PASSWORD }}</master>" >> ~/.m2/settings-security.xml | |
echo '</settingsSecurity>' >> ~/.m2/settings-security.xml | |
- name: Release Maven package | |
uses: samuelmeuli/[email protected] | |
with: | |
maven_profiles: deploy | |
gpg_private_key: ${{ secrets.GPG_KEY }} | |
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
nexus_username: ${{ secrets.OSSRH_USERNAME }} | |
nexus_password: ${{ secrets.OSSRH_PASSWORD }} | |
server_id: ossrh-nexus |