Skip to content

Commit 8200a96

Browse files
committed
hardcode (temporarily) snapshot release actions
1 parent 6db89ed commit 8200a96

1 file changed

Lines changed: 39 additions & 6 deletions

File tree

.github/workflows/snapshot.yml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,45 @@
11
name: snapshot
22

3+
env:
4+
MAVEN_OPTS: "-Xmx2G -XX:+ExitOnOutOfMemoryError -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3"
5+
36
on:
4-
push:
5-
workflow_dispatch:
7+
- pull_request
8+
- push
9+
- workflow_dispatch
610

711
jobs:
812
snapshot:
9-
uses: killbill/gh-actions-shared/.github/workflows/snapshot.yml@java21
10-
secrets:
11-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
12-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
13+
runs-on: ubuntu-22.04
14+
if: ${{ github.actor != 'dependabot[bot]' }}
15+
timeout-minutes: 360
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
with:
20+
persist-credentials: false
21+
- name: Set up JDK
22+
uses: actions/setup-java@v5
23+
with:
24+
java-version: '21'
25+
distribution: 'temurin'
26+
cache: 'maven'
27+
- name: Configure Cloudsmith credentials
28+
uses: s4u/maven-settings-action@v4.0.0
29+
with:
30+
githubServer: false
31+
servers: |
32+
[
33+
{"id": "central", "username": "${{ secrets.CLOUDSMITH_USERNAME }}", "password": "${{ secrets.CLOUDSMITH_CENTRAL_PASSWORD }}"},
34+
{"id": "cloudsmith", "username": "${{ secrets.CLOUDSMITH_USERNAME }}", "password": "${{ secrets.CLOUDSMITH_PASSWORD }}"}
35+
]
36+
- name: Set up Maven
37+
run: mvn --errors --batch-mode --show-version wrapper:wrapper "-Dmaven=3.8.4"
38+
- name: Deploy current snapshot
39+
run: ./mvnw --errors --batch-mode --show-version -DskipTests=true -Dgpg.skip=true deploy
40+
- name: Upload artifact on failure
41+
uses: actions/upload-artifact@v7
42+
if: failure()
43+
with:
44+
name: failure-snapshot
45+
path: '**/target/surefire-reports/*'

0 commit comments

Comments
 (0)