Skip to content

Added Release step if running from a tag #4

Added Release step if running from a tag

Added Release step if running from a tag #4

Workflow file for this run

name: Package Wordpress Plugin
on:
workflow_dispatch:
push:
branches:
- main
jobs:
package:
name: Package Plugin Zip
runs-on: ubuntu-latest
steps:

Check failure on line 13 in .github/workflows/package-plugin.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/package-plugin.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- uses: actions/checkout@v4
- name: Get Package Filename
id: package-id
run: |
echo "filename=wp-password-redirect-${{ github.ref }}.zip"
echo "fullFilename=${{ github.workspace }}/${filename}"
- uses: vimtor/[email protected]
name: zip
with:
files: src/
dest: ${{ steps.package-id.outputs.filename}}
- uses: actions/upload-artifact@v4
with:
name: plugin-package
path: ${{ github.workspace }}/${{ steps.package-id.outputs.filename}}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: ${{ steps.package-id.outputs.fullFilename}}
release:
name: Release Package
runs-on: ubuntu-latest