-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.23 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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