File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+ name : Continuous Delivery
5+
6+ on :
7+ release :
8+ types : [published]
9+
10+ jobs :
11+ continuous-delivery :
12+ runs-on : ubuntu-20.04
13+
14+ steps :
15+ - name : Check out Git repository
16+ uses : actions/checkout@v2
17+
18+ - name : Install Java and Maven
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : 1.8
22+
23+ - name : Release Maven package
24+ uses : samuelmeuli/action-maven-publish@v1
25+ with :
26+ gpg_private_key : ${{ secrets.gpg_private_key }}
27+ gpg_passphrase : ${{ secrets.gpg_passphrase }}
28+ nexus_username : ${{ secrets.nexus_username }}
29+ nexus_password : ${{ secrets.nexus_password }}
30+ maven_profiles : " release"
31+ maven_args : >
32+ -Drevision=${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change 2727
2828 - name : Run UI tests
2929 run : make test
30-
31- continuous-delivery :
32- if : startsWith(github.ref, 'refs/tags/')
33- needs : build-test
34- runs-on : ubuntu-20.04
35-
36- steps :
37- - name : Check out Git repository
38- uses : actions/checkout@v2
39-
40- - name : Install Java and Maven
41- uses : actions/setup-java@v1
42- with :
43- java-version : 1.8
44-
45- - name : Release Maven package
46- uses : samuelmeuli/action-maven-publish@v1
47- with :
48- gpg_private_key : ${{ secrets.gpg_private_key }}
49- gpg_passphrase : ${{ secrets.gpg_passphrase }}
50- nexus_username : ${{ secrets.nexus_username }}
51- nexus_password : ${{ secrets.nexus_password }}
52- maven_profiles : " release"
53- maven_args : >
54- -Drevision=${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments