Skip to content

Commit

Permalink
Improve daily build workflow to archive timestamped plugin zip
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Jun 11, 2024
1 parent 2d79226 commit 9958271
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
- name: Create Plugin Zip
run: ./gradlew buildPlugin

- 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)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
- name: Archive Plugin Zip
uses: actions/upload-artifact@v3
with:
name: plugin-distribution
name: ballerina-swanlake-intellij-plugin-${{ env.VERSION }}-${{ env.TIMESTAMP }}
path: build/distributions/*.zip

0 comments on commit 9958271

Please sign in to comment.