Skip to content

3.11.6

3.11.6 #15

name: Build Plugin
on:
release:
types: [ published ]
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build Project
run: |
composer run release
mkdir build
mkdir ${{ github.event.repository.name}}
rsync -rv . ${{ github.event.repository.name}} --exclude=${{ github.event.repository.name}} --exclude .git/ --exclude node_modules/ --exclude ".*" --exclude assets/styles/src/ --exclude composer.json --exclude composer.lock --exclude build/ --exclude config/ --exclude CHANGELOG.md --exclude README.md --exclude webpack.mix.js --exclude package.json --exclude package-lock.json --exclude phpstan.neon --exclude mix-manifest.json
- name: Create Artifact
uses: montudor/action-zip@v1
with:
args: zip -qq -r build/bm-wp-experience.zip ${{ github.event.repository.name}}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: bm-wp-experience
path: build/bm-wp-experience.zip
- name: Add to Release
uses: JasonEtco/upload-to-release@master
with:
args: build/bm-wp-experience.zip application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}