Release plugin #20
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: Release plugin | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{github.token}} #required by gh cli | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install packages | |
run: composer install --prefer-dist --no-progress --no-suggest --no-dev | |
- name: Create plugin directory | |
run: mkdir -p /tmp/woosms-sms-module-for-woocommerce | |
- name: Copy plugin files | |
run: cp -r assets src vendor .compatibility.php LICENSE readme.txt woosms-* /tmp/woosms-sms-module-for-woocommerce | |
- name: Create plugin zip | |
run: cd /tmp && zip -r woosms-sms-module-for-woocommerce.zip woosms-sms-module-for-woocommerce | |
- name: Add archive to release | |
run: gh release upload ${{github.ref_name}} /tmp/woosms-sms-module-for-woocommerce.zip | |
# - name: Create plugin archive | |
# run: tar -czf /tmp/plugin.tar.gz assets src vendor .compatibility.php LICENSE readme.txt $(ls woosms-*) | |
# - name: Archive contents | |
# run: tar -tf /tmp/plugin.tar.gz | |
#todo: publish to wordpress SVN |