-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 1.16 KB
/
d4l-ci-publish-release.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
38
39
name: D4L CI - Publish Release
on:
push:
tags:
- 'v*'
jobs:
publish-release:
runs-on: ubuntu-latest
env:
PACKAGE_REGISTRY_DOWNLOAD_USERNAME: ${{ secrets.PACKAGE_REGISTRY_DOWNLOAD_USERNAME }}
PACKAGE_REGISTRY_DOWNLOAD_TOKEN: ${{ secrets.PACKAGE_REGISTRY_DOWNLOAD_TOKEN }}
PACKAGE_REGISTRY_UPLOAD_USERNAME: ${{ secrets.PACKAGE_REGISTRY_UPLOAD_USERNAME }}
PACKAGE_REGISTRY_UPLOAD_TOKEN: ${{ secrets.PACKAGE_REGISTRY_UPLOAD_TOKEN }}
steps:
- name: Display runner context
run: hostname -s
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- name: Cleanup
run: ./gradlew clean
- name: Version
run: ./gradlew versionInfo
- name: Build project
run: ./gradlew build
- name: Publish to GitHub Packages
run: ./gradlew publishAllPublicationToGitHubPackagesRepository
- name: Publish Release to Maven Repo
run: ./gradlew publishRelease