Repository navigation
chore(release): prepare EVHardware 1.15.0 #20
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 AAR | |
| # Publishes the EVHardware AAR to GitHub Packages on a version tag, for EXTERNAL projects | |
| # that want a binary dependency. The EVSuite apps keep the git-submodule source | |
| # dependency and do not use this. | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish: | |
| name: Publish AAR to GitHub Packages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Publish | |
| env: | |
| # Version from the tag (v1.2.3 -> 1.2.3); GITHUB_ACTOR/TOKEN authenticate the repo. | |
| EVHARDWARE_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.1.0-SNAPSHOT' }} | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| chmod +x gradlew | |
| # Strip a leading 'v' from the tag for a clean Maven version. | |
| export EVHARDWARE_VERSION="${EVHARDWARE_VERSION#v}" | |
| ./gradlew :lib:publishReleasePublicationToGitHubPackagesRepository --no-daemon |