1- name : Build & Release draft
2-
1+ name : Build
32on : [push, pull_request]
43
54jobs :
98 steps :
109 - name : Checkout
1110 uses : actions/checkout@v2.0.0
12-
1311 - name : Install composer dependencies
1412 run : composer install --no-dev -o
15-
1613 - name : Clean-up project
1714 uses : PrestaShopCorp/github-action-clean-before-deploy@v1.0
18-
15+ - name : Prepare auto-index tool
16+ run : |
17+ composer global require prestashop/autoindex
18+ - name : Generate index.php
19+ run : |
20+ ~/.composer/vendor/bin/autoindex
1921 - name : Create & upload artifact
2022 uses : actions/upload-artifact@v1
2123 with :
2224 name : ${{ github.event.repository.name }}
2325 path : ../
24-
2526 update_release_draft :
2627 runs-on : ubuntu-latest
2728 needs : [deploy]
@@ -31,29 +32,25 @@ jobs:
3132 uses : actions/download-artifact@v1
3233 with :
3334 name : ${{ github.event.repository.name }}
34-
3535 - id : release_info
3636 uses : toolmantim/release-drafter@v5
3737 env :
3838 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39-
4039 - name : Prepare for Release
4140 run : |
4241 cd ${{ github.event.repository.name }}
4342 zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }}
44-
4543 - name : Clean existing assets
4644 shell : bash
4745 run : |
4846 curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
4947 assets=`bin/hub api -t repos/${{ github.repository }}/releases/${{ steps.release_info.outputs.id }}/assets | awk '/\].url/ { print $2 }'`
5048 for asset in $assets
5149 do
52- bin/hub api -X DELETE $asset
50+ bin/hub api -X DELETE $asset
5351 done
5452 env :
5553 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56-
5754 - name : Publish to GitHub Release
5855 uses : actions/upload-release-asset@v1.0.1
5956 env :
0 commit comments