Skip to content

Build a WordPress plugin's assets and attach them to the release

License

Notifications You must be signed in to change notification settings

laserred/action-build-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action - Build Release

Build a WordPress plugin's assets using NPM and Composer, then attach them to the release

Managing files in the build

Use a .distignore file to exclude files from the build.

Testing locally

Install act and run a test from your repo directory.

Example

name: Build release and save asset
on:
  release:
    types: [published]
jobs:
  build:
    name: Build release and save asset
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Build
        id: build
        uses: laserred/action-build-release@master
        with:
          generate-zip: true
          node-version: 'v14.16.0'
      - name: Upload release asset
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ github.event.release.upload_url }}
          asset_path: ${{ steps.build.outputs.zip_path }}
          asset_name: ${{ github.event.repository.name }}.zip
          asset_content_type: application/zip

About

Build a WordPress plugin's assets and attach them to the release

Resources

License

Stars

Watchers

Forks

Packages

No packages published