Skip to content

Commit 160dd43

Browse files
authored
Add demo plugin zip to release workflow (#43)
1 parent 6005aa1 commit 160dd43

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,25 @@ jobs:
3434
- name: Create plugin zip
3535
run: npm run plugin-zip
3636

37-
- name: Upload Release Asset
37+
- name: Create demo plugin zip
38+
run: npm run plugin-zip -w wp-feature-api-agent
39+
40+
- name: Upload Main Plugin Release Asset
3841
uses: actions/upload-release-asset@v1
3942
env:
4043
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4144
with:
4245
upload_url: ${{ github.event.release.upload_url }} # Get upload URL from the release event
4346
asset_path: ./wp-feature-api.zip
44-
asset_name: wp-feature-api.zip # You can customize this if needed, e.g. include version
47+
asset_name: wp-feature-api.zip
48+
asset_content_type: application/zip
49+
50+
- name: Upload Demo Plugin Release Asset
51+
uses: actions/upload-release-asset@v1
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
with:
55+
upload_url: ${{ github.event.release.upload_url }}
56+
asset_path: ./demo/wp-feature-api-agent/wp-feature-api-agent.zip
57+
asset_name: wp-feature-api-agent.zip
4558
asset_content_type: application/zip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build-types
1111
build-wp
1212
node_modules
1313
wp-feature-api.zip
14+
wp-feature-api-agent.zip
1415
coverage
1516
.phpunit.result.cache
1617
.reassure

0 commit comments

Comments
 (0)