Skip to content

Commit ef08553

Browse files
authored
Merge pull request #8 from AkYML/feature/GH_workflow
add yml build script
2 parents b4718ba + ce76481 commit ef08553

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## :loudspeaker: Type of change
2+
<!--- Put an `x` in the boxes that apply, remove checkboxes from remaining -->
3+
4+
- [ ] Bugfix
5+
- [ ] New feature
6+
- [ ] Enhancement
7+
- [ ] Refactoring
8+
9+
## :scroll: Description
10+
<!--- Describe your changes in detail -->
11+
12+
## :bulb: Motivation and Context
13+
<!--- Why is this change required? What problem does it solve? -->
14+
<!--- If it fixes an open issue, please link to the issue here. -->
15+
16+
## :green_heart: How did you test it?
17+
<!--- Describe how the changes were tested -->
18+
19+
## :pencil: Checklist
20+
<!--- Put an `x` in the boxes that apply, remove checkboxes from remaining -->
21+
22+
- [ ] I reviewed submitted code
23+
- [ ] I added tests to verify changes
24+
- [ ] All tests passing
25+
- [ ] All linters passing
26+
- [ ] There are no code climate issues
27+
28+
## :crystal_ball: Next steps
29+
<!--- Describe any changes that need to be made after merging this PR -->
30+
<!--- Describe any changes that you would like to make after merging this PR -->
31+
32+
## :camera_flash: Screenshots / GIFs
33+
<!--- Mandatory for UI changes -->
34+
<!-- Uncomment the next line and replace it with links to your screenshots. -->
35+
<!--
36+
<img src="https://placekitten.com/260/260" width="260">&emsp;
37+
<img src="https://placekitten.com/300/300" width="260">&emsp;
38+

.github/workflows/android.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: set up JDK 11
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '11'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
- name: Build with Gradle
26+
run: ./gradlew build

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Maven Release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Java for publishing to Maven Central Repository
12+
uses: actions/setup-java@v3
13+
with:
14+
java-version: '11'
15+
distribution: 'temurin'
16+
cache: gradle
17+
18+
- name: Grant execute permission for gradlew
19+
run: chmod +x gradlew
20+
- name: Build with Gradle
21+
run: ./gradlew :feature:ytag:clean build publish
22+
23+
env:
24+
MAVEN_USERNAME: ${{ secrets.MAVENCENTRALUSERNAME }}
25+
MAVEN_PASSWORD: ${{ secrets.MAVENCENTRALPASSWORD}}
26+
MEMORY_KEY: ${{ secrets.SIGNINGINMEMORYKEY}}
27+
SIGNINGKEY: ${{ secrets.SIGNINGKEYID}}
28+
SIGNINGPASSWORD: ${{ secrets.SIGNINGPASSWORD}}

0 commit comments

Comments
 (0)