From cb67ddee2c4f8b21d19a878e7111c5725d15a464 Mon Sep 17 00:00:00 2001 From: Zach Harel Date: Sun, 1 Dec 2024 15:39:37 -0500 Subject: [PATCH] Update snapshots.yml --- .github/workflows/snapshots.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/snapshots.yml b/.github/workflows/snapshots.yml index 5ec7bbc..dcfe941 100644 --- a/.github/workflows/snapshots.yml +++ b/.github/workflows/snapshots.yml @@ -5,10 +5,12 @@ # This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle -name: Gradle Package +name: Publish Snapshots on: - push + push: + branches: + - 'master' jobs: build: @@ -36,7 +38,7 @@ jobs: # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle - - name: Publish to GitHub Packages + - name: Publish to Dairy Snapshots run: ./gradlew publishAllPublicationsToDairySnapshotsRepository env: dairySnapshotsUsername: ${{ secrets.SNAPSHOTS_USERNAME }}