forked from wmixvideo/nfe
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.47 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
name: "Release Master"
# Run workflow on commits to the `master` branch
on:
push:
branches:
- master
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install Java and Maven
uses: actions/setup-java@v3
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.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests" -P central
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy -P github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}