8000 fix(addons): essai workflow 9 · ciklik/prestashop@d1d4c50 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat/addons

Feat/addons #12

Workflow file for this run

name: Deploy
on: [workflow_dispatch, pull_request, push]
jobs:
deploy-site:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.3]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: build
run: |
zip -r app.zip ./ -x "/.git*" -x "/.github*" -x "tests" -x "/.idea" -x "/.docker" -x "/.php-cs-fixer.dist.php" -x "src/Addons/Addons.php" -x "module_dependencies.json"
mkdir -p output
unzip app.zip -d output/ciklik
rm app.zip
cd output/ciklik
composer install --no-dev --optimize-autoloader --classmap-authoritative
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: ciklik-site-${{ matrix.php }}
path: output
include-hidden-files: true
release:
runs-on: ubuntu-latest
needs: deploy-site
steps:
- name: Downloading Artifacts
uses: actions/download-artifact@v4
- name: Creating release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*
# deploy-addons:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: build
# run: |
# mv -f src/Addons/Addons.php src/Addons/Account.php
# composer install --no-dev --optimize-autoloader --classmap-authoritative
# composer dump-autoload --no-dev --optimize --classmap-authoritative
# rm -rf .git
# rm -rf .github
# rm -rf tests
# rm -rf cypress
# rm -rf .docker
# rm -rf .idea
# rm .php-cs-fixer.dist.php
# mkdir ciklik
# rsync -Rr ./ ./ciklik
# shopt -s extglob
# rm -r !(ciklik)
# find . -maxdepth 1 -type f -exec rm "{}" \;
# cd ciklik && rm -rf ciklik
# - name: Archive production artifacts
# uses: actions/upload-artifact@v4
# with:
# name: ciklik-addons
# path: |
# .
0