-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (31 loc) · 1005 Bytes
/
publish.yml
File metadata and controls
38 lines (31 loc) · 1005 Bytes
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
38
name: Publish to artifactory on release branch
on:
push:
branches: [ "release" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
steps:
- name: "Checkout sources"
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
# Populates ARTIFACTORY_USERNAME and ARTIFACTORY_API_KEY with
# temporary username/password for publishing to packages.atlassian.com
- name: Get publish token
id: publish-token
uses: atlassian-labs/artifact-publish-token@v1.0.1
with:
output-modes: environment
# Publishes to Artifactory only on push to the "release" branch.
- name: "Publish"
run: ./gradlew assemble && ./gradlew publish --stacktrace