Merge pull request #10 from sbooster/development #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish | |
| concurrency: production | |
| # This action should process only on push to 'production' branch | |
| on: | |
| push: | |
| branches: | |
| - production | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: 17 | |
| distribution: "liberica" | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Build and Publish with Gradle | |
| run: ./gradlew clean build publishToMyNexus | |
| env: | |
| NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
| NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} |