Merge pull request #137 from Umutayb/email-filtering #184
Workflow file for this run
This file contains hidden or 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: Deploy on Maven Central | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| publish: | |
| permissions: write-all | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create Properties File | |
| run: | | |
| echo " | |
| test-email=${{secrets.RECEIVER_EMAIL}} | |
| test-email-application-password=${{secrets.RECEIVER_EMAIL_PASSWORD}} | |
| test-email-master-password=${{secrets.SENDER_PASSWORD}} | |
| sender-test-email=${{secrets.SENDER_TEST_EMAIL}} | |
| host=${{secrets.SENDER_HOST}} | |
| " >> src/test/resources/secret.properties | |
| - name: Set up Java for publishing to Maven Central Repository | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 19 | |
| distribution: 'temurin' | |
| server-id: central | |
| server-username: MAVEN_USERNAME | |
| server-password: MAVEN_PASSWORD | |
| gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} | |
| gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
| - name: Build, Test & Publish | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| artifacts: "${{ github.workspace }}/out/artifacts/Java-Utilities_jar/*.jar" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish to the Maven Central Repository | |
| run: | | |
| mvn \ | |
| --no-transfer-progress \ | |
| --batch-mode \ | |
| deploy | |
| env: | |
| MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} |