Build release zip #12
This file contains 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 release zip | |
on: | |
workflow_dispatch: | |
jobs: | |
build_zip: | |
name: Build release zip | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: npm install and build | |
run: | | |
npm install | |
npm run build | |
npm run makepot | |
composer install --no-dev | |
npm run archive | |
- name: Upload the ZIP file as an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: release | |
retention-days: 2 |