-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (28 loc) · 870 Bytes
/
action.yml
File metadata and controls
30 lines (28 loc) · 870 Bytes
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@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: ${{ github.event.repository.name }}
path: zipfile
retention-days: ${{ inputs.retention-days }}