Skip to content

v8.0.11

v8.0.11 #26

Workflow file for this run

name: Deploy
on:
release:
types: [published]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.4.2
- name: Setup PHP
uses: shivammathur/setup-php@2.21.1
with:
php-version: 8.0
- name: Install Composer dependencies
run: composer install
- name: Build
run: |
npm install
npm run build
- name: Deploy to WP.org
id: plugin-deploy
uses: 10up/action-wordpress-plugin-deploy@2.1.0
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: 'simple-sales-tax'
ASSETS_DIR: .wordpress
- 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.plugin-deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip