Skip to content

Commit

Permalink
Add build release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninodevo committed Aug 12, 2024
1 parent ade3022 commit 4ef85de
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 run-script packages-install -- --no-dev
npm ci
npm run build
- name: Zip Folder
run: zip -r ${{ github.event.repository.name }}.zip . -x ".git/*" ".github/*" "node_modules/*" ".gitignore" ".editorconfig" ".phpcs.xml" "composer.json" "composer.lock" "package.json" "package-lock.json"

- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.event.repository.name }}.zip

0 comments on commit 4ef85de

Please sign in to comment.