Skip to content

Commit d266e35

Browse files
Change workflow (#74)
1 parent 2895a12 commit d266e35

File tree

3 files changed

+56
-54
lines changed

3 files changed

+56
-54
lines changed

.github/workflows/cron.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/push.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,3 @@ jobs:
2727
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2828
- name: Codecov metrics
2929
uses: codecov/codecov-action@v3
30-
31-
snapshots:
32-
name: Snaphots
33-
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'project-openubl' }}
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@v3
37-
38-
- uses: actions/setup-java@v3
39-
with:
40-
distribution: "temurin"
41-
java-version: 11
42-
cache: maven
43-
server-id: ossrh
44-
server-username: MAVEN_USERNAME
45-
server-password: MAVEN_PASSWORD
46-
- name: OSSRH Snapshot
47-
run: mvn --batch-mode source:jar javadoc:jar deploy -Possrh -DskipTests
48-
49-
env:
50-
MAVEN_USERNAME: ${{ secrets.nexus_username }}
51-
MAVEN_PASSWORD: ${{ secrets.nexus_password }}
52-
53-
- uses: actions/setup-java@v3
54-
with:
55-
distribution: "temurin"
56-
java-version: 11
57-
cache: maven
58-
- name: GitHub Snapshot
59-
run: mvn --batch-mode source:jar javadoc:jar deploy -Pgithub -DskipTests
60-
env:
61-
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/snaphots.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Snaphots
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
env:
8+
CI: true
9+
10+
jobs:
11+
linux-jvm-tests:
12+
name: JDK JVM Tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-java@v3
17+
with:
18+
distribution: "temurin"
19+
java-version: 11
20+
cache: maven
21+
- name: Build with Maven
22+
run: mvn verify
23+
24+
snapshots:
25+
needs: [ linux-jvm-tests ]
26+
name: Snaphots
27+
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'project-openubl' }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
# OSSRH
33+
- uses: actions/setup-java@v3
34+
with:
35+
distribution: "temurin"
36+
java-version: 11
37+
cache: maven
38+
server-id: ossrh
39+
server-username: MAVEN_USERNAME
40+
server-password: MAVEN_PASSWORD
41+
- name: OSSRH Snapshot
42+
run: mvn --batch-mode source:jar javadoc:jar deploy -Possrh -DskipTests
43+
env:
44+
MAVEN_USERNAME: ${{ secrets.nexus_username }}
45+
MAVEN_PASSWORD: ${{ secrets.nexus_password }}
46+
47+
# GitHub
48+
- uses: actions/setup-java@v3
49+
with:
50+
distribution: "temurin"
51+
java-version: 11
52+
cache: maven
53+
- name: GitHub Snapshot
54+
run: mvn --batch-mode source:jar javadoc:jar deploy -Pgithub -DskipTests
55+
env:
56+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)