Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Build and Release Plugin

on:
pull_request:
types: [closed]
types: [opened, synchronize, reopened, closed]
branches:
- master

jobs:
build:
if: github.event.pull_request.merged == true
if: github.event.action != 'closed' || github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -41,12 +41,21 @@ jobs:
run: |
mv plugin/build/distributions/*.zip plugin/build/distributions/yamp_plugin_${{ steps.get_version.outputs.version }}.zip

- name: Upload plugin zip to workflow run
if: github.event.action != 'closed'
uses: actions/upload-artifact@v4
with:
name: yamp_plugin_${{ steps.get_version.outputs.version }}
path: plugin/build/distributions/yamp_plugin_${{ steps.get_version.outputs.version }}.zip
if-no-files-found: error

# Attaches the plugin zip to the release for this version.
# softprops/action-gh-release creates the release+tag when missing and
# appends the asset to the existing release when the tag was already
# published (e.g. by app-build.yml). Never skip: multiple merges share a
# date-based version, and the plugin must land on the release regardless.
- name: Upload plugin artifact to GitHub Release
if: github.event.pull_request.merged == true
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ studioCompilePath=/Applications/Android Studio.app/Contents

pluginGroup = com.github.grishberg
pluginName = android-methods-profiler
yampVersion = 26.11.11
yampVersion = 26.11.16

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
Expand Down
Loading