Skip to content

Commit

Permalink
Add Publish CI flow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenoid committed Feb 3, 2023
1 parent 6648638 commit 280bdcc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Release

on:
workflow_dispatch:
push:
branches:
- 'main'

jobs:
publish_job:
name: Publish
runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 20
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Run Publish
env:
GPG_SIGNING_KEY_ID: ${{ secrets.GPG_SIGNING_KEY_ID }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
GPG_SIGNING_SECRET_KEY: ${{ secrets.GPG_SIGNING_SECRET_KEY }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: ./gradlew publishReleasePublicationToMavenRepository

0 comments on commit 280bdcc

Please sign in to comment.