Skip to content

Commit

Permalink
gh action added to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawsson committed May 30, 2024
1 parent 90acefe commit 11bf61e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish project to Maven repository
# OR, publish per each commit
on:
push:
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 18
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish with Gradle
run: ./gradlew keyforge:build keyforge:publish
env:
MAVEN_NAME: ${{ secrets.MAVEN_NAME }} # token name
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }} # token secret (password)

0 comments on commit 11bf61e

Please sign in to comment.