Skip to content

Test in 6.5-RC3

Test in 6.5-RC3 #290

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set Node Version
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
extensions: zip
- name: Install composer dependencies
run: composer install --optimize-autoloader --no-dev
- name: Install npm dependencies
run: npm install
- name: Build
run: npx webpack -p
- name: WordPress Plugin Deploy
if: startsWith(github.ref, 'refs/tags/')
uses: 10up/[email protected]
env:
SLUG: disable-media-pages
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
- name: Remove
run: rm -fr .github node_modules .nvmrc .editorconfig .gitignore .prettierrc.js .git
- name: Zip
run: rsync -av * disable-media-pages && zip -r disable-media-pages.zip disable-media-pages
- uses: actions/upload-artifact@master
with:
name: disable-media-pages
path: disable-media-pages.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: disable-media-pages.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}