-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 992 Bytes
/
publish.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
40
name: Publish to GH packages
on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-[a-z]+[0-9]+'
env:
GH_USERNAME: ${{ secrets.MCD_OPEN_SOURCE_REPOSITORY_CI_USERNAME }}
GH_TOKEN: ${{ secrets.MCD_OPEN_SOURCE_REPOSITORY_CI_TOKEN }}
jobs:
publish:
name: Publish to GH packages
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: true
- name: Build and publish package to GH registry
run: ./gradlew --profile clean publishAllPublicationsToGitHubPackagesRepository
- name: Upload profile reports
uses: actions/upload-artifact@v4
with:
name: profile-report
path: build/reports/profile/
retention-days: 3