-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (36 loc) · 1.06 KB
/
create-build.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
name: Create build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install composer
uses: php-actions/composer@v6
with:
php_extensions: json
version: 2
dev: no
- run: composer global config --no-plugins allow-plugins.wpify/scoper true
- run: composer global require wpify/scoper
- run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE/vendor
- run: composer install --no-dev --optimize-autoloader
- name: Archive plugin artifacts
uses: actions/upload-artifact@v2
with:
name: woolab-ic-dic
path: |
${{ github.workspace }}
!git/**/*
!github/**/*
!tests/**/*
!DOCKER_ENV
!docker_tag
!output.log