Skip to content

Commit

Permalink
Fixing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
junkfactory committed Aug 3, 2024
1 parent a16eadc commit 60d8076
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -27,7 +28,12 @@ jobs:
- name: Build Plugin
run: |
./gradlew buildPlugin --no-daemon
PKG="$(basename ${{ github.repository }})-${{ github.ref_name }}.zip"
ls -l ./build/distributions
mv ./build/distributions/${{ github.repository }}-snapshot.zip "$PKG"
gh release create ${{ github.ref_name }} "./build/distributions/$PKG" --generate-notes
- name: Publish Release
env:
DIST_DIR: "./build/distributions"
run: |
PROJECT_NAME="$(basename ${{ github.repository }})"
PKG="$PROJECT_NAME-${{ github.ref_name }}.zip"
ls -l "$DIST_DIR"
mv "$DIST_DIR/$PROJECT_NAME-snapshot.zip" "$DIST_DIR/$PKG"
gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes

0 comments on commit 60d8076

Please sign in to comment.