Skip to content

Commit

Permalink
Merge pull request #75 from NipunaRanasinghe/master
Browse files Browse the repository at this point in the history
Improve daily build artifact archive name
  • Loading branch information
NipunaRanasinghe authored Jun 12, 2024
2 parents b0a01b7 + fed7933 commit 45998c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:

- name: Get version and timestamp
run: |
VERSION=$((grep -w 'pluginVersion' | cut -d= -f2) < gradle.properties | rev | cut -d- -f2 | rev)
TIMESTAMP=$(date +%Y%m%d%H%M%S)
NAME=$((grep -w 'name') < gradle.properties | cut -d= -f2)
VERSION=$((grep -w 'version') < gradle.properties | cut -d= -f2)
echo "NAME=$NAME" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
- name: Archive Plugin Zip
uses: actions/upload-artifact@v3
with:
name: ballerina-swanlake-intellij-plugin-${{ env.VERSION }}-${{ env.TIMESTAMP }}
name: ${{ env.NAME }}-${{ env.VERSION }}.zip
path: build/distributions/*.zip
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ plugins {
maven { url 'https://jitpack.io' }
}

version = project.ballerinaPluginVersion
version = project.version

dependencies {
implementation group: "com.github.ballerina-platform", name: "lsp4intellij", version: "${lsp4IntellijVersion}"
}

intellij {
version = project.ideaVersion
pluginName = project.ballerinaPluginName
pluginName = project.name
type = 'IC'
plugins = []
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ballerinaPluginName=ballerina-intellij-idea-plugin
ballerinaPluginVersion=2.0.0-SNAPSHOT
name=ballerina-intellij-plugin
version=2.0.0-SNAPSHOT

# Gradle Dependency Versions
intellijPluginVersion=1.16.1
Expand Down

0 comments on commit 45998c1

Please sign in to comment.