1.2.6 #3
Workflow file for this run
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 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 ".*" --exclude assets/scripts/src/ --exclude composer.json --exclude composer.lock --exclude build/ --exclude config/ --exclude CHANGELOG.md --exclude README.md | |
- name: Create Artifact | |
uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r build/${{ github.event.repository.name}}.zip ${{ github.event.repository.name}} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name}} | |
path: build/${{ github.event.repository.name}}.zip | |
- name: Add to Release | |
uses: JasonEtco/upload-to-release@master | |
with: | |
args: build/${{ github.event.repository.name}}.zip application/zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |