Skip to content

Commit

Permalink
fix actions to work on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Stereo528 authored Jan 17, 2024
1 parent 4463d85 commit 7066f45
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Gradle build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [ pull_request, push, workflow_dispatch ]

jobs:
build:
Expand All @@ -17,11 +13,12 @@ jobs:
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Grant execute permission for gradlew
Expand All @@ -31,7 +28,7 @@ jobs:
run: ./gradlew buildOrPublish

- name: capture build artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
path: build/libs/

0 comments on commit 7066f45

Please sign in to comment.