@@ -14,57 +14,14 @@ jobs:
1414 java-version : ' 17'
1515 distribution : ' temurin'
1616 cache : maven
17- server-id : ossrh
17+ server-id : central
1818 server-username : MAVEN_USERNAME
1919 server-password : MAVEN_PASSWORD
2020 gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
2121 gpg-passphrase : GPG_PASSPHRASE
2222 - name : Publish package
2323 run : mvn --batch-mode -DskipTests=true deploy
2424 env :
25- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
26- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
25+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_PUBLISH_USER }}
26+ MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PUBLISH_TOKEN }}
2727 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
28-
29- send-email :
30- name : Send release Email
31- runs-on : ubuntu-latest
32- steps :
33- - name : Checkout
34- uses : actions/checkout@v4
35- - name : Decode configuration
36- env :
37- CONFIG : ${{ secrets.RELEASE_AUTOMATOR_BASE64_CONFIG }}
38- run : |
39- echo $CONFIG | base64 --decode > release.yaml
40- - name : Run release-automator
41- uses : unzerdev/unzer-tech-toolbox/.github/actions/release-changelog@main
42- with :
43- command : mail
44- version : ${{github.ref_name}}
45-
46- generate-tweet :
47- name : Generate tweet
48- runs-on : ubuntu-latest
49- steps :
50- - name : Checkout
51- uses : actions/checkout@v4
52- - name : Decode configuration
53- env :
54- CONFIG : ${{ secrets.RELEASE_AUTOMATOR_BASE64_CONFIG }}
55- run : |
56- echo $CONFIG | base64 --decode > release.yaml
57- - name : Run release-automator
58- uses : unzerdev/unzer-tech-toolbox/.github/actions/release-changelog@main
59- with :
60- command : tweet
61- version : ${{github.ref_name}}
62- - name : Copy out tweet file
63- run : |
64- sudo cp target/tweet.txt tweet.txt
65- - name : Attach release notes
66- uses : actions/upload-artifact@v3
67- with :
68- name : tweet
69- path : tweet.txt
70- retention-days : 5
0 commit comments