Remove unneeded test #492
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Composer | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '5.6' | |
extensions: zip | |
- name: Set Node Version | |
uses: actions/setup-node@v2 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install 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: acf-image-aspect-ratio-crop | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
- name: Release | |
run: | | |
rm -fr .github node_modules .travis.yml .editorconfig .gitignore .prettierrc.js deploy.sh deploy-github.sh tests codeception.dist.yml | |
zip -r acf-image-aspect-ratio-crop.zip . -x *.git* | |
- uses: actions/upload-artifact@master | |
with: | |
name: acf-image-aspect-ratio-crop.zip | |
path: acf-image-aspect-ratio-crop.zip | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: acf-image-aspect-ratio-crop.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |