Skip to content

Commit

Permalink
Develop (#5)
Browse files Browse the repository at this point in the history
* 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
jimlyas authored Jan 25, 2022
1 parent b8a49eb commit fc89a4c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
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 }}

0 comments on commit fc89a4c

Please sign in to comment.