Skip to content

Commit

Permalink
Add buildPlugin.sh and trigger CI only on manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Jun 16, 2023
1 parent 0168edf commit e20f50a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@

name: Build
on:
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests)
push:
branches: [main]
# Trigger the workflow on any pull request
pull_request:
workflow_dispatch
#on:
# # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests)
# push:
# branches: [main]
# # Trigger the workflow on any pull request
# pull_request:

jobs:

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pluginGroup = com.ivyapps.composehammer
pluginName = compose-hammer-m3-ui-builder
pluginRepositoryUrl = https://github.com/ILIYANGERMANOV/compose-material3-helper-plugin
# SemVer format -> https://semver.org
pluginVersion = 2023.05.30
pluginVersion = 2023.06.19

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 221
Expand Down
5 changes: 5 additions & 0 deletions scripts/buildPlugin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

./gradlew buildPlugin || exit
cp build/distributions/* ~/Downloads/ || exit
echo "Build successful! Check ~/Downloads/ for the result."

0 comments on commit e20f50a

Please sign in to comment.