Skip to content

v1.2.2

v1.2.2 #32

Workflow file for this run

name: release
on:
release:
types: [ published, edited, updated, drafted]
jobs:
build_release:
name: build_release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install PHP 5.6
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
- name: Run composer install
run: |
composer install --no-dev --optimize-autoloader --classmap-authoritative
composer dump-autoload --no-dev --optimize --classmap-authoritative
- name: build
# IF YOU EDIT THIS, DON'T FORGET TO EDIT deploy.yml
run: |
cp .github/.htaccess vendor/.htaccess
rm -rf .git
rm -rf .github
rm -rf tests
rm -rf cypress
rm -rf .docker
mkdir saferpayofficial
rsync -Rr ./ ./saferpayofficial
shopt -s extglob
rm -r !(saferpayofficial)
find . -maxdepth 1 -type f -exec rm "{}" \;
cd saferpayofficial && rm -rf saferpayofficial
cd ../ && zip -r saferpayofficial.zip saferpayofficial/
- name: Update release
id: update_release
uses: tubone24/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.update_release.outputs.upload_url }}
asset_path: ./saferpayofficial.zip
asset_name: saferpayofficial.zip
asset_content_type: application/zip