Skip to content

Commit

Permalink
Add publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Nov 30, 2024
1 parent aa24a23 commit defb268
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,18 @@ jobs:
run: ./gradlew :akit:installRoboRioToolchain
- name: "Build and test"
run: ./gradlew :akit:build ${{ matrix.build-options }}
- name: "Development: Publish local"
if: github.event_name != "release"
run: ./gradlew :akit:publishAllPublicationsToMavenRepository ${{ matrix.build-options }}
- name: "Release: Get version number"
id: get_version
if: github.event_name == "release"
uses: battila7/get-version-action@v2
- name: "Release: Publish"
if: github.event_name == "release"
run: ./gradlew :akit:publish -PpublishingVersion=${{ steps.get_version.outputs.version-without-v }} ${{ matrix.build-options }}
- name: "Upload local repo"
uses: actions/upload-artifact@v3
with:
name: maven_${{ matrix.name }}
path: akit/build/repos/releases

0 comments on commit defb268

Please sign in to comment.