Release plugin #10
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: [push] | |
on: | |
# workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install packages | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- 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 | |
- name: Add archive to release | |
run: gh release upload ${{github.ref}} /tmp/plugin.tar.gz |