Skip to content

Commit

Permalink
Update php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phdhiren authored Jun 10, 2022
1 parent adae4ba commit 833316a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
include:
- php: '7.4'
- php: '8.0'
#- php: '8.1'
- php: '8.1'

runs-on: ubuntu-latest

Expand Down Expand Up @@ -43,27 +43,18 @@ jobs:
path: drupal/vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-${{ matrix.php }}
- name: Install dependencies and Zip the distribution
run: |
cd drupal
composer install --prefer-dist --no-progress
tar zcvf ../apigee-devportal-php-${{ matrix.php }}.tar.gz .
cd ..
tar zcvf apigee-devportal-kickstart-${{ matrix.php }}.tar.gz drupal
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: apigee-devportal-php-${{ matrix.php }}.tar.gz
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
# uses: actions/upload-artifact@v3
# with:
# name: apigee-devportal-kickstart-${{ matrix.php }}-artifact
# path: apigee-devportal-kickstart-${{ matrix.php }}.tar.gz
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test

0 comments on commit 833316a

Please sign in to comment.