Skip to content

Commit

Permalink
ci: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Nov 8, 2023
1 parent a55362f commit 4c3ebfd
Show file tree
Hide file tree
Showing 3 changed files with 557 additions and 292 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/relesase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- run: npm run build

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: composer--no-dev-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
uses: php-actions/composer@v6
with:
php_version: "8.1"
dev: no
args: --classmap-authoritative

- name: Generate zip
run: npm run plugin-zip && cp .zip ${{ github.event.repository.name }}.zip

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

0 comments on commit 4c3ebfd

Please sign in to comment.