forked from 10up/action-wordpress-plugin-build-zip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (28 loc) · 827 Bytes
/
action.yml
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
name: 'WordPress Plugin Build Zip'
description: 'Build a release zip of a WordPress Plugin'
author: '10up'
branding:
icon: 'archive'
color: 'blue'
inputs:
retention-days:
description: 'How many days to keep the zip archive'
default: 5
runs:
using: 'composite'
steps:
- name: Generate zip archive
id: archive
run: ${{ github.action_path }}/build-zip.sh
shell: bash
- name: Unzip the archive (prevents double zip problem)
id: unzip
run: unzip ${{ github.event.repository.name }}.zip -d zipfile
shell: bash
- name: Upload the archive as an artifact
id: upload-plugin-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}.zip
path: zipfile
retention-days: ${{ inputs.retention-days }}