-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add some documentation * fix cicd * add template for issue * add template for issue * add PR template * fix junit and add more documentation * fix junit and add more documentation
- Loading branch information
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,48 @@ | ||
name: Build and Release The library | ||
name: release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionName: | ||
description: "Version Name" | ||
required: true | ||
jobs: | ||
tag: | ||
name: Create a new tag | ||
Release: | ||
name: Build and Release the library | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: "11" | ||
distribution: "adopt" | ||
- name: Grant Permission to Execute Gradle | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
run: | | ||
./gradlew :okdynamic:build | ||
- name: Publish the library | ||
run: | | ||
./gradlew publish | ||
env: | ||
username_github: ${{ secrets.username_github }} | ||
key_github: ${{ secrets.key_github }} | ||
- name: Create a tag and push it | ||
- name: Create new tag | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "jimlyas" | ||
git tag -a $TAG -m "Release v$TAG" | ||
git push origin $TAG | ||
env: | ||
TAG: ${{ github.event.inputs.versionName }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: "11" | ||
distribution: "adopt" | ||
- name: Create release | ||
- name: Create new release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: ${{ github.event.inputs.versionName }} | ||
tag: ${{ github.event.inputs.versionName }} | ||
artifacts: "okdynamic/build/outputs/aar/okdynamic-debug.aar" | ||
bodyFile: "README.md" | ||
token: ${{ secrets.KEY_GITHUB }} |