From ceada9373695447d12dfaf56b5e3c198e966424b Mon Sep 17 00:00:00 2001 From: Frederik Rommel Date: Wed, 5 Jul 2023 17:26:46 +0200 Subject: [PATCH] github actions: archive: remove composer install and composer.lock from archive --- .github/workflows/archive.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml index 7af448501..1c30745f5 100644 --- a/.github/workflows/archive.yml +++ b/.github/workflows/archive.yml @@ -1,5 +1,5 @@ name: Create Download on Release -on: +on: release: types: [published] jobs: @@ -8,37 +8,26 @@ jobs: steps: - name: Checkout Master uses: actions/checkout@master - - name: Install PHP - uses: shivammathur/setup-php@master - with: - php-version: 7.4 - extensions: mbstring, xdebug, curl, dom, fileinfo, gd, iconv, intl, json, xml, mbstring, pdo, phar, zip, sodium - tools: composer:v2.2 - - name: Check PHP Version - run: php -v - - name: Check Composer Version - run: composer -V - - name: Check PHP Extensions - run: php -m + - name: Set Tag env run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10} env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + - name: Test tag run: echo ${{ env.RELEASE_VERSION }} + - name: Prepare folder run: | mkdir ./PayonePayment - cp -r src CHANGELOG* README.md composer.json composer.lock ./PayonePayment/ - - name: Composer setup - run: | - cd ./PayonePayment - composer install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --optimize-autoloader + cp -r src CHANGELOG* README.md composer.json ./PayonePayment/ + - name: Build the zip uses: thedoctor0/zip-release@v0.2.1 with: path: ./PayonePayment/ filename: PayonePayment-${{ env.RELEASE_VERSION }}.zip + - name: Upload zip to release uses: fnkr/github-action-ghr@v1 env: