Skip to content

WebPImageConverter Build #27

WebPImageConverter Build

WebPImageConverter Build #27

Workflow file for this run

name: WebPImageConverter Build
on:
workflow_run:
workflows: ["WebPImageConverter CI"]
types: [completed]
branches: [master]
permissions:
contents: write
jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Checkout to Master Built
if: github.ref == 'refs/heads/master'
env:
USER_EMAIL: "[email protected]"
USER_NAME: "badasswp"
run: |
git config user.email "${USER_EMAIL}"
git config user.name "${USER_NAME}"
git checkout -b master-built
- name: Build Vendor folder
run: |
composer install --no-dev
git add vendor/ -f
- name: Clean Up Files
run: |
while IFS= read -r file; do
git rm -rf "$file"
done < .deployignore
git rm .deployignore
git clean -f composer.lock
- name: Push to Master Built
run: |
git commit -m "push to master-built"
git push origin master-built -f
rm -rf .git