Skip to content

Commit 60d8076

Browse files
committed
Fixing workflow
1 parent a16eadc commit 60d8076

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
release:
13+
name: Create Release
1314
runs-on: ubuntu-latest
1415
env:
1516
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -27,7 +28,12 @@ jobs:
2728
- name: Build Plugin
2829
run: |
2930
./gradlew buildPlugin --no-daemon
30-
PKG="$(basename ${{ github.repository }})-${{ github.ref_name }}.zip"
31-
ls -l ./build/distributions
32-
mv ./build/distributions/${{ github.repository }}-snapshot.zip "$PKG"
33-
gh release create ${{ github.ref_name }} "./build/distributions/$PKG" --generate-notes
31+
- name: Publish Release
32+
env:
33+
DIST_DIR: "./build/distributions"
34+
run: |
35+
PROJECT_NAME="$(basename ${{ github.repository }})"
36+
PKG="$PROJECT_NAME-${{ github.ref_name }}.zip"
37+
ls -l "$DIST_DIR"
38+
mv "$DIST_DIR/$PROJECT_NAME-snapshot.zip" "$DIST_DIR/$PKG"
39+
gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes

0 commit comments

Comments
 (0)