Skip to content

Commit

Permalink
Publish from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Dec 1, 2023
1 parent efb6a08 commit 94cb095
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish
on:
push:
tags:
- "v0.*"
jobs:
publish:
environment:
name: gradle-plugin-portal
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- name: Set up OpenJDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "temurin"
- name: Publish
run: ./gradlew --stacktrace publishPlugins
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
# "ORG_GRADLE_PROJECT_" environment variables with dots do not work indeed.
# https://github.com/gradle/gradle/issues/1295
ORG_GRADLE_PROJECT_gradle.publish.key: ${{ secrets.GRADLE_PUBLISH_KEY }}
ORG_GRADLE_PROJECT_gradle.publish.secret: ${{ secrets.GRADLE_PUBLISH_SECRET }}

0 comments on commit 94cb095

Please sign in to comment.