GitHub Actions - use gradle:jdk8 container to provide Java

This commit is contained in:
Jakub Chrzanowski
2020-08-10 17:11:06 +02:00
committed by Jakub Chrzanowski
parent 7c6a82d291
commit b56e1f6835
2 changed files with 4 additions and 25 deletions

View File

@@ -12,6 +12,7 @@ jobs:
release:
name: Publish Plugin
runs-on: ubuntu-latest
container: gradle:jdk8
if: github.repository != 'JetBrains/intellij-platform-plugin-template'
steps:
@@ -21,12 +22,6 @@ jobs:
with:
ref: ${{ github.event.release.tag_name }}
# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 1.8
# Publish the plugin to the Marketplace
- name: Publish Plugin
env:
@@ -38,6 +33,7 @@ jobs:
name: Update Changelog
needs: release
runs-on: ubuntu-latest
container: gradle:jdk8
steps:
# Check out current repository
@@ -46,12 +42,6 @@ jobs:
with:
ref: ${{ github.event.release.tag_name }}
# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 1.8
# Update Unreleased section with the current version
- name: Patch Changelog
run: ./gradlew patchChangelog