2.0.4 #30
Workflow file for this run
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: OTGS BUILD | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set github token for composer | |
run: composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} | |
- name: Build plugin | |
run: composer install --no-dev --prefer-dist --no-progress --no-suggest | |
- name: Clean up files | |
run: | | |
rm ./.gitignore ./.gitlab-ci.yml | |
rm ./composer.* ./Makefile ./phpcs.* ./phpunit.xml ./run.sh | |
rm -Rf tests .vscode | |
find . -type d | grep '.git' | xargs rm -rf | |
- name: Upload plugin | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wpml-elasticpress.${{ github.ref_name }} | |
path: . |