-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 2.28 KB
/
Copy pathmanually-build-zip.yml
File metadata and controls
68 lines (60 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Manually Build release zip
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
type: string
default: ''
jobs:
build:
name: Build release zip
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies and build
run: |
npm ci
npm run build
composer install --no-dev --optimize-autoloader
- name: Archive Release
uses: thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 #0.7.6
with:
type: 'zip'
filename: 'vmfa-editorial-workflow.zip'
exclusions: >-
*.git* /*.github/* /*.vscode/* /*node_modules/* /*tests/* /*docs/*
/src/js/* /src/css/*
composer.json composer.lock package.json package-lock.json
phpunit.xml phpunit.xml.dist phpcs.xml vite.config.js vitest.config.js i18n-map.json
.editorconfig .eslintignore .phpunit.result.cache .eslintrc.js .gitignore .gitattributes webpack.config.js
*.log CHANGELOG.md README.md
!readme.txt !build/* !languages/* !src/php/* !vendor/*
- name: Verify Archive Contents
run: |
echo "Listing vmfa-editorial-workflow.zip entries:"
unzip -l vmfa-editorial-workflow.zip || { echo "Failed to list zip contents"; exit 1; }
echo "Total files: $(unzip -l vmfa-editorial-workflow.zip | awk 'END{print $2}')"
# Verify plugin-update-checker is included
if unzip -l vmfa-editorial-workflow.zip | grep -q "vendor/yahnis-elsts/plugin-update-checker"; then
echo "✓ Plugin Update Checker is included"
else
echo "✗ ERROR: Plugin Update Checker is missing from the release!"
exit 1
fi
- name: Release
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: vmfa-editorial-workflow.zip
tag_name: ${{ github.event.inputs.tag }}