2025.1.0 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a package using Gradle and then save it to Assets | |
name: Build Asset | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: gradle | |
- name: Gradle wrapper | |
run: gradle wrapper | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build Plugin | |
run: ./gradlew buildPlugin | |
- name: Upload Plugin to Release Assets | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./build/distributions/PhpStorm Magento 2 Plugin-${{ github.event.release.tag_name }}.zip | |
asset_name: PhpStorm Magento 2 Plugin-${{ github.event.release.tag_name }}.zip | |
asset_content_type: application/zip-archive | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |