forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
31 lines (28 loc) · 1.01 KB
/
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
31
name: 'Pack Phalcon Extension'
description: 'Create ZIP archive with Phalcon Framework Extension for corresponding OS and PHP version.'
inputs:
target-name:
description: 'Archive name without extension for target release assets.'
required: true
ext-path:
description: 'Full path to Phalcon Extension.'
required: true
runs:
using: 'composite'
steps:
- name: Prepare Build Artifacts
shell: pwsh
run: |
$Destination = "./build-artifacts"
if (-not (Test-Path -Path $Destination -PathType Container)) {
New-Item $Destination -ItemType Directory | Out-Null
}
Copy-Item -Path "${{ inputs.ext-path }}" -Destination $Destination
Copy-Item -Path "./3rdparty/licenses/*.txt" -Destination $Destination
Set-Location $Destination
& 7z a "${{ inputs.target-name }}.zip" *
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.target-name }}.zip
path: ./build-artifacts/phalcon*.zip