Build and upload package #62
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
| name: Build and upload package | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - '.github/workflows/package.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Install modules | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Pack zip | |
| run: npm run pack:build | |
| - name: Publish zip | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: photobooth | |
| path: archives/photobooth-*.zip | |
| - name: Remove archives folder | |
| run: rm -rf archives |