-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (34 loc) · 1.25 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Android CI
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
KINTA_GPG_PRIVATE_KEY: ${{ secrets.KINTA_GPG_PRIVATE_KEY }}
KINTA_GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.KINTA_GPG_PRIVATE_KEY_PASSWORD }}
KINTA_STAGING_PROFILE_ID: ${{ secrets.KINTA_STAGING_PROFILE_ID }}
run: |
if [ ${{ github.event_name }} != 'pull_request' ]
then
eval `ssh-agent -s`
ssh-add - <<< "${{ secrets.SSH_DEPLOY_KEY }}"
git remote set-url origin [email protected]:dailymotion/kinta.git
git config --global user.email "[email protected]"
git config --global user.name "Kinta GithubActions"
python3 -m venv venv
which pip
PIP_BREAK_SYSTEM_PACKAGES=1 pip install mkdocs-material
mkdocs -V
fi
./gradlew clean assemble deployArtifactsIfNeeded deployDocsIfNeeded deployArchivesIfNeeded -i --stacktrace