Formwork 2.3.1 #19
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| release: | |
| types: [created] | |
| name: Create release assets | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| tools: composer | |
| - name: Install dependencies | |
| run: composer install --no-dev --optimize-autoloader --no-interaction | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| - name: Build panel assets | |
| run: | | |
| cd panel | |
| pnpm install | |
| pnpm build | |
| - name: Create archive | |
| run: | | |
| zip -r formwork-${{ github.event.release.tag_name }}.zip . -x \ | |
| \*.git/\* \ | |
| \*.github/\* \ | |
| \*node_modules/\* | |
| - name: Upload release assets | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| file: formwork-${{ github.event.release.tag_name }}.zip |