-
-
Notifications
You must be signed in to change notification settings - Fork 14
67 lines (51 loc) · 1.8 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Release"
on:
push:
tags:
- '*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment:
name: release
steps:
- uses: actions/checkout@v4
- name: Setup Maven Central Repository
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
architecture: x64
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Install gpg secret key
run: |
echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish to Maven Central
run: |
mvn --no-transfer-progress versions:set -DnewVersion=${{ github.ref_name }}
mvn --batch-mode --no-transfer-progress -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: "Create release"
uses: softprops/action-gh-release@v2
with:
draft: false
body: |
## Version ${{ github.ref_name }}
### New functionality ✨
-
### Bug fixes 🐞
-
### Technical improvements 👩💻
-
### Dependency upgrades 📈
-
Full Changelog: https://github.com/nbaars/paseto4j/compare/${{ github.ref_name }}...2024.1
-
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}