-
-
Notifications
You must be signed in to change notification settings - Fork 9
28 lines (25 loc) · 969 Bytes
/
deploy_snapshot.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
name: Deploy to GitHub packages and Sonatype Snapshots
on:
push:
branches: [ release/** ]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Run tests with Gradle
run: ./gradlew allTests
- name: Generate dokka HTML
run: ./gradlew -Porg.gradle.jvmargs="-Xmx8g" dokkaHtml
- name: Deploy snapshot to Sonatype Snapshots
run: ./gradlew -Porg.gradle.jvmargs="-Xmx8g" -Psnapshot=true publishAllPublicationsToSnapshotRepository
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- name: Deploy snapshot to GitHub packages
run: ./gradlew -Porg.gradle.jvmargs="-Xmx8g" -Psnapshot=true publishAllPublicationsToGitHubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}