bump version #3
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
| # GitHub Actions workflow to automatically publish to GitHub Packages. | |
| name: "Publish to GitHub Packages" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| env: | |
| JAVA_VERSION: 17 | |
| jobs: | |
| publish: | |
| name: "Publish" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v3 | |
| - name: "Set up Java ${{ env.JAVA_VERSION }}" | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: "${{ env.JAVA_VERSION }}" | |
| distribution: "adopt" | |
| - name: "Grant execute permission for gradlew" | |
| run: chmod +x gradlew | |
| - name: "Gradle publish" | |
| uses: gradle/gradle-build-action@v2 | |
| with: | |
| arguments: "clean build publishAllPublicationsToGitHubPackagesRepository" | |
| env: | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |