Skip to content

Commit

Permalink
Trying to publish to maven central when a release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
vooft committed May 18, 2024
1 parent b552a6f commit 2e969f2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: Publish kotlinx-serialization-smile-core

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_IN_MEMORY_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_IN_MEMORY_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_IN_MEMORY_KEY_PASSWORD }}
TAG: ${{ github.event.release.tag_name }}

steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 2e969f2

Please sign in to comment.