-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.85 KB
/
release-please.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: release-please
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
submodules: true
- uses: ./.github/actions/gradle
if: ${{ steps.release.outputs.release_created }}
- name: generate artifacts
if: ${{ steps.release.outputs.release_created }}
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_SIGNING_KEY: ${{ secrets.PGP_SIGNING_KEY }}
PGP_SIGNING_PASSWORD: ${{ secrets.PGP_SIGNING_PASSWORD }}
SIGNING_ENABLED: ${{ secrets.SIGNING_ENABLED }}
shell: bash
run: |
./gradlew publishReleasePublicationToLocalRepository --scan
- name: zip artifacts
if: ${{ steps.release.outputs.release_created }}
shell: bash
run: |
find . -type f -name 'maven-metadata.xml*' -delete;
cd releases;
cp -r ./maven ./ktx;
rm -rf ./ktx/io/github/ryunen344/glyph/glyph-ktx;
cp -r ./maven ./compose;
rm -rf ./compose/io/github/ryunen344/glyph/glyph-compose;
cd ktx && zip -r ktx.zip ./io && cd ..;
cd compose && zip -r compose.zip ./io && cd ..;
- name: uploads artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh release upload ${{ steps.release.outputs.tag_name }} releases/ktx/ktx.zip releases/compose/compose.zip --clobber