-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 958 Bytes
/
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
name: Release Library
on:
workflow_dispatch:
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Set up Gradle
uses: gradle/gradle-build-action@v3
- name: Extract version from build.gradle.kts
id: extract_version
run: |
version=$(grep -oP 'version = "\K[0-9]+\.[0-9]+\.[0-9]+' compose-remember-setting/build.gradle.kts)
echo "VERSION=$version" >> $GITHUB_ENV
- name: Publish artifacts to Sonatype
run: ./gradlew publishToMavenLocal
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.VERSION }}
commit: ${{ github.sha }}
automatic_release_notes: true
make_latest: true