Skip to content

Commit 74f968a

Browse files
author
Joseph Manalastas Iturralde
committed
Add workflow
1 parent 8e40427 commit 74f968a

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches: [master]
4+
jobs:
5+
publish:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up JDK 11
10+
uses: actions/setup-java@v2
11+
with:
12+
distribution: 'adopt'
13+
java-version: '11'
14+
- name: Setup Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python3 -m pip install --upgrade pip
21+
python3 -m pip install mkdocs
22+
python3 -m pip install mkdocs-material
23+
- name: Generate Docs
24+
run: ./gradlew dokkaHtml
25+
- name: Build Docs
26+
run: mkdocs build
27+
- name: Publish Docs
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./site

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
release:
3+
types: [published]
4+
jobs:
5+
publish:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up JDK 11
10+
uses: actions/setup-java@v2
11+
with:
12+
distribution: 'adopt'
13+
java-version: '11'
14+
- name: Build
15+
run: ./gradlew clean :puree:build
16+
- name: Publish to Maven
17+
run: ./gradlew :puree:publishAllPublicationsToMavenRepository
18+
env:
19+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
20+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
21+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
22+
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
pull_request:
3+
branches: [master]
4+
jobs:
5+
unit_test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up JDK 11
10+
uses: actions/setup-java@v2
11+
with:
12+
distribution: 'adopt'
13+
java-version: '11'
14+
- name: Build
15+
run: ./gradlew clean build
16+
- name: Unit Test
17+
run: ./gradlew test
18+
android_test:
19+
runs-on: macos-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up JDK 11
23+
uses: actions/setup-java@v2
24+
with:
25+
distribution: 'adopt'
26+
java-version: '11'
27+
- name: Build
28+
run: ./gradlew clean build
29+
- name: Android Test
30+
uses: reactivecircus/android-emulator-runner@v2
31+
with:
32+
api-level: 29
33+
script: ./gradlew connectedCheck

0 commit comments

Comments
 (0)