Skip to content

Commit

Permalink
github actions: archive: remove composer install and composer.lock fr…
Browse files Browse the repository at this point in the history
…om archive
  • Loading branch information
rommelfreddy authored and janteuber committed Jul 6, 2023
1 parent 66e7d0d commit ceada93
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/archive.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Create Download on Release
on:
on:
release:
types: [published]
jobs:
Expand All @@ -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/[email protected]
with:
path: ./PayonePayment/
filename: PayonePayment-${{ env.RELEASE_VERSION }}.zip

- name: Upload zip to release
uses: fnkr/github-action-ghr@v1
env:
Expand Down

0 comments on commit ceada93

Please sign in to comment.