Skip to content

Commit 53b87da

Browse files
committed
update instructions
1 parent 6ceecd7 commit 53b87da

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ This GitHub Action automates the process of generating a zip archive of a WordPr
55
## Usage
66

77
To use this action, you will want to copy the contents of one of these examples into `.github/workflows/build-archive.yml` and push that to your repository. You are welcome to name the file something else, but it must be in that directory. The usage of `ubuntu-latest` is recommended for compatibility with required dependencies in this Action. Here's an example workflow:
8+
### Build zip on demand and keep that for 1 day with installation of composer dependencies and npm build with specific node version
9+
```yml
10+
name: Generate WordPress Archive
11+
on:
12+
workflow_dispatch
13+
14+
jobs:
15+
generate-archive:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Generating zip
22+
uses: rudlinkon/action-wordpress-build-zip@master
23+
with:
24+
retention-days: 1 # Optional; defaults to 3
25+
install-composer: true # Optional; defaults to false
26+
npm-run-build: true # Optional; defaults to false
27+
node-version: 20 # Optional; defaults to 16
28+
```
29+
830
### Build zip on pushes to master
931
```yml
1032
name: Generate WordPress Archive

0 commit comments

Comments
 (0)