2.0.0 #12
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: Create a ZIP file | |
on: | |
release: | |
types: [published] | |
jobs: | |
compress: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Rename src directory | |
run: mv ./src ./smailyforprestashop | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
dev: no | |
progress: yes | |
working_dir: smailyforprestashop | |
- name: Compress ZIP | |
uses: TheDoctor0/[email protected] | |
with: | |
filename: release.zip | |
path: smailyforprestashop | |
exclusions: > | |
/.git* | |
/.php-cs-fixer.dist.php | |
/.phpstan.neon | |
- name: Get release | |
id: get_release_url | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload release asset | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.get_release_url.outputs.upload_url }} | |
asset_path: ./release.zip | |
asset_name: smailyforprestashop.zip | |
asset_content_type: application/zip |