-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (34 loc) · 908 Bytes
/
Copy pathpublish-api.yml
File metadata and controls
40 lines (34 loc) · 908 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
39
40
name: Publish API to GitHub Packages
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag to re-publish'
required: true
type: string
permissions:
contents: read
packages: write
jobs:
publish:
name: Publish :api to GH Packages
runs-on: ubuntu-latest
steps:
- name: Checkout (release tag)
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name || inputs.tag }}
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish :api
run: ./gradlew --no-daemon :api:publish
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}