Skip to content

Build and Release

Build and Release #2

Workflow file for this run

name: Build and Release
on:
release:
types: [ released ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
run: composer install --no-dev
- name: Zip Folder
run: zip -r ${{ github.event.repository.name }}.zip . -x ".git/*" ".github/*" "node_modules/*" "tests/*" ".gitignore" ".editorconfig" ".phpcs.xml" "composer.lock" "package.json" "package-lock.json" ".vscode/*" "bin" "vendor" ".phpcs.xml.dist" ".phpunit.result.cache" ".travis.yml" "phpunit.xml.dist"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.event.repository.name }}.zip