mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-04-19 06:59:03 +02:00
* 10: Convert library into Kotlin Multiplatform library * 10: Setup CI * 10: Setup CI * 10: Test CI * 10: Test CI * 10: Test CI * 10: Test CI * 10: Test CI * 10: Test CI * 10: Test CI
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Publish Snapshot
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [Test]
|
|
branches-ignore: [main]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
publish:
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
name: Publish Snapshot
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: adopt
|
|
java-version: 11
|
|
|
|
# Runs upload, and then closes & releases the repository
|
|
- name: Publish to snapshot to Sonatype
|
|
run: ./gradlew publish --max-workers 1
|
|
env:
|
|
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
|
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
|
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
|
|
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
|
|
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
|
|
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
|
|
SNAPSHOT: false |