fix build
This commit is contained in:
@@ -12,7 +12,7 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
test-and-package:
|
||||
@@ -56,6 +56,8 @@ jobs:
|
||||
zip -qr "../${archive_name}" "${plugin_slug}"
|
||||
)
|
||||
|
||||
unzip -p "${archive_name}" "${plugin_slug}/wp-translate.php" | grep -q '^ \* Plugin Name: WP Translate$'
|
||||
|
||||
printf 'archive=%s\n' "${archive_name}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload plugin archive
|
||||
@@ -65,3 +67,9 @@ jobs:
|
||||
path: ${{ steps.package.outputs.archive }}
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
|
||||
- name: Publish plugin ZIP to GitHub Release
|
||||
if: startsWith( github.ref, 'refs/tags/v' )
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ${{ steps.package.outputs.archive }}
|
||||
Reference in New Issue
Block a user