-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.25 KB
/
preview.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
name: Create a downloadable preview build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ["8.0"]
name: Create a downloadable preview build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Check PHP Version
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate
- name: Create temporary directories and files
run: |
mkdir -p ./build/source
- name: Installing Composer dependencies
run: composer install --prefer-dist --no-progress --no-dev
- name: Copy mandatory files to the temporary build folder
run: |
cp -r ./src/. ./build/source/
cp README.md ./build/source/
cp LICENSE ./build/source/
- name: Upload the Final Artifact to GitHub
uses: actions/upload-artifact@v3
with:
name: Mollie
path: ./build/source/*
if-no-files-found: error