Skip to content

Commit d1a5378

Browse files
authored
Merge pull request #59 from Staffbase/split-test-delivery
chore: make separate step for deployment
2 parents fab9121 + 9e334ae commit d1a5378

2 files changed

Lines changed: 32 additions & 25 deletions

File tree

.github/workflows/cd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 }}

.github/workflows/ci.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,3 @@ jobs:
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 }}

0 commit comments

Comments
 (0)