Skip to content

v1.10.6

v1.10.6 #24

Workflow file for this run

name: Deploy to wp.org
on:
release:
types: [published]
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Ensure to checkout git submodules
submodules: recursive
# Copy everything from src/ to temp/build/, excluding the ignored files
- name: Prepare
run: |
mkdir -p temp/build/
rsync -rc --exclude-from=".distignore" src/ temp/build/ --delete --delete-excluded
- name: 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 }}
BUILD_DIR: temp/build
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_IR }}
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