-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 945 Bytes
/
ci.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
32
33
34
35
36
37
38
name: CI
env:
php_version: "8.2"
blob_name: "simpay-wordpress-${{ github.ref_name }}.zip"
archive_format: "zip"
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: ${{ env.php_version }}
php_extensions: yaml
- name: Archive project
if: success() || failure()
uses: php-actions/composer@v6
with:
php_version: ${{ env.php_version }}
php_extensions: yaml
command: archive
args: --format=${{ env.archive_format }}
- name: Rename archive
run: mv simpay-wordpress.zip simpay-wordpress-${{ github.ref_name }}.zip
- name: Release
uses: softprops/action-gh-release@v1
if: success() || failure()
with:
files: ${{ env.blob_name }}
tag_name: ${{ inputs.version }}