-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github actions: archive: remove composer install and composer.lock fr…
…om archive
- Loading branch information
1 parent
66e7d0d
commit ceada93
Showing
1 changed file
with
7 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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: | ||
|