Skip to content

Workflow file for this run

name: Build release and Deploy to wordpress.org
on:
release:
types: [published]
jobs:
tag:
name: New tag
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
id: vars
run: echo ::set-output name=tag::${GITHUB_REF:10}
- name: Build
id: build
uses: wpeverest/[email protected]
with:
generate-zip: true
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
- 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