Skip to content

Commit

Permalink
ci(gradle): migrate to supported gradle action (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelooter authored Nov 17, 2024
1 parent 6564023 commit f658b72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build

permissions: read-all

on:
workflow_dispatch:
push:
Expand Down Expand Up @@ -29,16 +31,16 @@ jobs:
with:
submodules: true

- name: Verify Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Enable Corepack
run: corepack enable

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

name: Publish

permissions: read-all

on:
push:
tags:
Expand All @@ -16,22 +18,24 @@ jobs:
build:
name: Publish Plugin
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Verify Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/vscode-icons.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Update vscode-icons

permissions: read-all

on:
workflow_dispatch:
schedule:
Expand Down

0 comments on commit f658b72

Please sign in to comment.