Skip to content

Commit

Permalink
Upgrade the version of the action steps (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystery00 authored Mar 7, 2024
1 parent e9ef894 commit b317992
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
Expand All @@ -33,8 +33,9 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
pnpm_cache_dir=`pnpm store path`
echo "pnpm_cache_dir=$pnpm_cache_dir" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
Expand All @@ -52,7 +53,7 @@ jobs:
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
./gradlew clean build -x test
- name: Archive plugin-starter jar
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plugin-starter
path: |
Expand All @@ -65,7 +66,7 @@ jobs:
if: github.event_name == 'release'
steps:
- name: Download plugin-starter jar
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: plugin-starter
path: build/libs
Expand All @@ -80,7 +81,7 @@ jobs:
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
echo "RELEASE_ID=${{ github.event.release.id }}" >> $GITHUB_ENV
- name: Upload a Release Asset
uses: actions/github-script@v2
uses: actions/github-script@v7
if: github.event_name == 'release'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit b317992

Please sign in to comment.