Skip to content

Commit

Permalink
Fix workflow to only release main branch to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza Jugon committed Oct 23, 2024
1 parent 2c11c8c commit 70ca05c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Release to Maven Central

on:
workflow_dispatch:
inputs:
branch:
description: "The branch to use to release from."
required: true
default: "main"
workflow_dispatch: # Allows manual triggering of the workflow

jobs:
release:
name: Release to Maven Central
Expand All @@ -16,8 +13,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
# We need a personal access token to be able to push to a protected branch
ref: main # Hardcoded to main branch
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

- name: Set up JDK
Expand Down

0 comments on commit 70ca05c

Please sign in to comment.