mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-04-19 23:19:03 +02:00
* 14: Test CI * 14: Test CI * 14: Test CI * 14: Test CI * 14: Test CI * 14: Test CI * 14: Test CI
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Publish
|
|
|
|
on:
|
|
release:
|
|
# We'll run this workflow when a new GitHub release is created
|
|
types: [released]
|
|
|
|
|
|
jobs:
|
|
test:
|
|
uses: ./.github/workflows/test.yml
|
|
secrets: inherit
|
|
|
|
publish:
|
|
name: Publish Production
|
|
environment: production
|
|
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 MavenCentral
|
|
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 |