2.1.0 #17
Workflow file for this run
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 | |
| on: | |
| release: | |
| types: [ published ] | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| deploy: | |
| name: Publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Publish release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| ./gradlew clean publish -Pversion=${{ github.event.release.tag_name }} | |
| - name: Update snapshot version | |
| run: | | |
| ./gradlew updateVersion -PreleaseVersion=${{ github.event.release.tag_name }} --rerun-tasks | |
| - name: Commit gradle.properties | |
| run: | | |
| git config --global user.name 'waffle-spring' | |
| git config --global user.email 'waffle-spring@wafflestudio.com' | |
| git fetch | |
| git checkout main | |
| git add ./gradle.properties | |
| git commit -m "Automated commit by GitHub Actions" | |
| git push |