-
Notifications
You must be signed in to change notification settings - Fork 26
41 lines (39 loc) · 1.22 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
name: Build213
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Java and Maven
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
maven_args: -Drevision=$(git show -s --format=%ct.%h)
- name: tag repo
uses: oleksiyrudenko/gha-git-credentials@v2.1.1
with:
name: 'Ciaran Kearney'
email: 'ciaran@antipathy.org'
actor: 'SimonJPegg'
token: '${{ secrets.GITHUB_TOKEN }}'
- run: bash create_release.sh 2.13 .13 SimonJPegg/mvn_scalafmt "$GITHUB_TOKEN"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}