Skip to content

Commit

Permalink
Only publish on tag, build on main
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicklamprecht committed Nov 18, 2024
1 parent b3e60d2 commit 71252c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Gradle Upload

on:
push:
branches:
- main

jobs:
upload:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: gradle/wrapper-validation-action@v3
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 21
- name: Build with Gradle
run: ./gradlew --build-cache test build
4 changes: 2 additions & 2 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Gradle Upload

on:
push:
branches:
- main
tags:
- "**"

jobs:
upload:
Expand Down

0 comments on commit 71252c6

Please sign in to comment.