mirror of
https://github.com/fankes/unmeta-gradle-plugin.git
synced 2025-09-06 02:55:15 +08:00
Initial commit
This commit is contained in:
24
.github/workflows/publish-plugin.yaml
vendored
Normal file
24
.github/workflows/publish-plugin.yaml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Publish Plugin to Portal
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
gradle:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
|
||||
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
|
||||
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Cache Gradle Caches
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Run Gradle tasks
|
||||
run: ./gradlew preMerge --continue
|
||||
- name: Publish on Plugin Portal
|
||||
run: ./gradlew --project-dir plugin-build setupPluginUploadFromEnvironment publishPlugins
|
||||
if: success()
|
Reference in New Issue
Block a user