-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (43 loc) · 1.89 KB
/
joomla-artefact.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Create Joomla installation package
on:
release:
types: [ published ]
jobs:
createReleasePackage:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update -y
sudo apt-get install git zip unzip curl jq -y
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies from source
run: composer install --prefer-dist --no-dev --no-progress --optimize-autoloader
- name: Setup package version in manifests
run: find ./joomla -type f -name '*.xml' -exec sed -i 's/RELEASE_VERSION/${{ github.ref_name }}/g' {} \;
- name: Setup run permissions
run: sudo chmod +x ./joomla/build/build.sh
- name: Run build script
run: |
export TERM=xterm
./joomla/build/build.sh
- name: Upload artifact
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./joomla/build/pkg_phonenumber.zip