-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.01 KB
/
deploy-snapshot.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
name: "Deploy Snapshot"
on:
push:
branches: [master]
jobs:
build_deploy_snapshot:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: "Checkout source"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: "Set up JDK"
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
- name: "Setup Gradle"
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
with:
validate-wrappers: true
gradle-version: wrapper
cache-disabled: false
- name: "Build artifacts"
run: ./gradlew build -Psnapshot=true --full-stacktrace
- name: "Publish artifacts"
run: ./gradlew publish -Psnapshot=true --full-stacktrace
env:
ALPINE_MAVEN_NAME: ${{ secrets.ALPINE_MAVEN_NAME }}
ALPINE_MAVEN_SECRET: ${{ secrets.ALPINE_MAVEN_SECRET }}