Skip to content

Commit 76f988c

Browse files
authored
Chore: Update README (#135)
* update publish action github release step * update readme * update dependencies
1 parent 9b70710 commit 76f988c

File tree

2 files changed

+21
-50
lines changed

2 files changed

+21
-50
lines changed

.github/workflows/publish.yaml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414

15+
- name: Get updated version name
16+
run: |
17+
BRANCH_NAME="${{ github.ref_name }}"
18+
VERSION=${BRANCH_NAME#release/}
19+
20+
echo "VERSION_NAME=${VERSION}" >> $GITHUB_ENV
21+
1522
- name: Set Up JDK 17
1623
uses: actions/setup-java@v4
1724
with:
@@ -33,27 +40,14 @@ jobs:
3340
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
3441
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
3542

36-
- name: Create GitHub release
37-
uses: actions/github-script@v6
43+
- name: Create Release
44+
id: create_release
45+
uses: softprops/action-gh-release@v2
3846
env:
39-
REF_NAME: "${{ github.ref_name }}"
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4048
with:
41-
github-token: "${{ secrets.GITHUB_TOKEN }}"
42-
script: |
43-
try {
44-
const releaseName = process.env.REF_NAME.replace('release/', '');
45-
const response = await github.rest.repos.createRelease({
46-
draft: false,
47-
generate_release_notes: true,
48-
name: releaseName,
49-
owner: context.repo.owner,
50-
prerelease: false,
51-
repo: context.repo.repo,
52-
tag_name: releaseName,
53-
});
54-
55-
core.exportVariable('RELEASE_ID', response.data.id);
56-
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
57-
} catch (error) {
58-
core.setFailed(error.message);
59-
}
49+
draft: false
50+
name: v${{ env.VERSION_NAME }}
51+
generate_release_notes: true
52+
prerelease: false
53+
tag_name: v${{ env.VERSION_NAME }}

README.md

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NextLib
22

3-
[![Build nextlib](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml/badge.svg)](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml) [![](https://jitpack.io/v/anilbeesetti/nextlib.svg)](https://jitpack.io/#anilbeesetti/nextlib)
3+
[![Build nextlib](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml/badge.svg)](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml) [![Maven Central](https://img.shields.io/maven-central/v/io.github.anilbeesetti/nextlib-media3ext.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/io.github.anilbeesetti/nextlib-media3ext)
44

55
NextLib is a library for adding ffmpeg codecs to [Media3](https://github.com/androidx/media).
66

@@ -9,44 +9,21 @@ NextLib is a library for adding ffmpeg codecs to [Media3](https://github.com/and
99
- **Video**: H.264, HEVC, VP8, VP9
1010

1111
## Setup
12-
13-
NextLib is available at JitPack's Maven repo.
14-
15-
First, you have to add the jitpack's maven repo to your build.gradle
16-
17-
Kotlin DSL:
18-
19-
```kotlin
20-
repositories {
21-
maven { url = uri("https://jitpack.io") }
22-
}
23-
```
24-
25-
Groovy DSL:
26-
27-
```gradle
28-
repositories {
29-
maven { url 'https://jitpack.io' }
30-
}
31-
```
32-
33-
Now, you have to add the dependency to nextlib in your build.gradle
34-
3512
Kotlin DSL:
3613

3714
```kotlin
3815
dependencies {
39-
implementation("com.github.anilbeesetti.nextlib:nextlib-media3ext:INSERT_VERSION_HERE") // To add media3 software decoders and extensions
40-
implementation("com.github.anilbeesetti.nextlib:nextlib-mediainfo:INSERT_VERSION_HERE") // To get media info through ffmpeg
16+
implementation("io.github.anilbeesetti:nextlib-media3ext:INSERT_VERSION_HERE") // To add media3 software decoders and extensions
17+
implementation("io.github.anilbeesetti:nextlib-mediainfo:INSERT_VERSION_HERE") // To get media info through ffmpeg
4118
}
4219
```
4320

4421
Groovy DSL:
4522

4623
```gradle
4724
dependencies {
48-
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:INSERT_VERSION_HERE" // To add media3 software decoders and extensions
49-
implementation "com.github.anilbeesetti.nextlib:nextlib-mediainfo:INSERT_VERSION_HERE" // To get media info through ffmpeg
25+
implementation "io.github.anilbeesetti:nextlib-media3ext:INSERT_VERSION_HERE" // To add media3 software decoders and extensions
26+
implementation "io.github.anilbeesetti:nextlib-mediainfo:INSERT_VERSION_HERE" // To get media info through ffmpeg
5027
}
5128
```
5229

0 commit comments

Comments
 (0)