Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
buildzip with GitHub Action
  • Loading branch information
saiftheboss7 authored Oct 10, 2024
1 parent 3dab6d8 commit 5accef4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/BuildZip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build release zip

on:
push:
tags:
- "*"

jobs:
build:
name: Build release zip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 12.1.0
uses: actions/setup-node@v4
with:
node-version: 12.1.0
- uses: actions/checkout@master
- name: Npm install and build
run: |
rm -r package-lock.json
npm i
npm run build
npm run makepot
- name: Use desired version of php
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Composer install and build # Remove or modify this step as needed
run: |
composer install
composer update
composer dump-autoload -o
composer install --no-dev
composer dump-autoload -o
- name: Generate zip
uses: 10up/action-wordpress-plugin-build-zip@stable
env:
SLUG: wedevs-project-manager # optional, remove if GitHub repo name matches SVN slug, including capitalization

0 comments on commit 5accef4

Please sign in to comment.