Skip to content

Merge pull request #150 from rchmura/release241 #5

Merge pull request #150 from rchmura/release241

Merge pull request #150 from rchmura/release241 #5

Workflow file for this run

name: Deploy to WordPress.org
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Build theme
working-directory: ./vimeography-harvestone
run: |
npm ci
git clone https://github.com/davekiss/vimeography-blueprint.git node_modules/vimeography-blueprint
npm run build
- name: Build admin app
working-directory: ./lib/admin/app
run: |
npm ci
npm run build
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: vimeography
- 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.deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip