Skip to content

v1.7.0

v1.7.0 #15

Workflow file for this run

on:
release:
types: [published]
name: Deploy to WordPress.org
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get Version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Composer Install
uses: php-actions/composer@v6
with:
dev: no
php_version: "7.4"
- name: Install Yarn Dependencies
run: |
yarn install
yarn build
rm -rf node_modules
- name: Clean Build Files/Folders
run : |
chmod +x ./.deployment/cleanup.sh
sh ./.deployment/cleanup.sh;
- name: WordPress Plugin Deploy
uses: 10up/[email protected]
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: courier-notices
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}