Skip to content

Commit

Permalink
update publish plugin action
Browse files Browse the repository at this point in the history
  • Loading branch information
Robothy committed Feb 5, 2021
1 parent 3e31a9c commit 0bf2405
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/release-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,34 @@ on:
jobs:
relase:
runs-on: ubuntu-latest

env:
GRADLE_VERSION: 6.8.2

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: install gradle

- name: Install Gradle
run: |
sudo apt-get install -y gradle
pwd
sudo mkdir -p /opt/gradle
wget https://services.gradle.org/distributions/gradle-${{env.GRADLE_VERSION}}-bin.zip
unzip -d /opt/gradle gradle-${{env.GRADLE_VERSION}}-bin.zip
export PATH=$PATH:/opt/gradle/gradle-${{env.GRADLE_VERSION}}/bin
- name: gradle wrapper
run: gradle wrapper
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: test
run: ./gradlew test
run: gradlew test

- name: set API keys
run: |
mkdir -p ~/.gradle
sudo mkdir -p ~/.gradle
echo "gradle.publish.key=${{secrets.GRADLE_PUBLISH_KEY}}" > ~/.gradle/gradle.properties
echo "gradle.publish.secret=${{secrets.GRADLE_PUBLISH_SECRET}}" > ~/.gradle/gradle.properties
- name: publish plugins
run: ./gradlew publishPlugins
run: gradlew publishPlugins

0 comments on commit 0bf2405

Please sign in to comment.