forked from wmixvideo/nfe
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.33 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
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 }}