Fix bulk cart pricing; add bulk-applies shortcode (0.5.3) #9
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| 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' | |
| extensions: mbstring, gd | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Install runtime dependencies | |
| # --no-dev keeps PHPUnit etc. out of the shipped zip; the committed | |
| # composer.lock makes the install reproducible. | |
| run: composer install --no-dev --optimize-autoloader --no-interaction --no-progress | |
| - name: Build plugin zip | |
| # git archive honors the export-ignore rules in .gitattributes (drops docs, | |
| # tests, CI config, etc.); we then fold in the installed vendor/ so the zip is | |
| # upload-and-activate (mPDF included). Unzips to a wc-pricebook/ folder. | |
| run: | | |
| mkdir -p build | |
| git archive --format=tar --prefix=wc-pricebook/ HEAD | tar -x -C build | |
| cp -R vendor build/wc-pricebook/vendor | |
| (cd build && zip -qr "../wc-pricebook-${GITHUB_REF_NAME}.zip" wc-pricebook) | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: wc-pricebook-*.zip | |
| generate_release_notes: true |