-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (43 loc) · 1.6 KB
/
publish-packages.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
name: Publish Packages
on:
push:
branches:
- master
paths-ignore:
- '**.md'
concurrency: publish-packages
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: MineInAbyss/publish-action@master
with:
maven-metadata-url: https://repo.mineinabyss.com/releases/com/mineinabyss/conventions/kotlin/jvm/com.mineinabyss.conventions.kotlin.jvm.gradle.plugin/maven-metadata.xml
maven-username: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
maven-password: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
- name: Check whether the gradle platform has been updated
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
platform:
- 'idofront-catalog/**'
- 'idofront-catalog-shaded/**'
- '**/libs.versions.toml'
- name: Get version from gradle
if: steps.changes.outputs.platform == 'true'
shell: bash
id: extract_version
run: |
version=`gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}'`
echo "::set-output name=version::$version"
- name: Create GitHub Release for shaded idofront platfrom
if: steps.changes.outputs.platform == 'true'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: v${{ steps.extract_version.outputs.version }}
files: |
idofront-catalog-shaded/build/libs/*.platform