File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build & Release draft
22
3- on :
4- pull_request :
5- push :
6- branches :
7- - master
3+ on : [push, pull_request]
84
95jobs :
106 deploy :
139 steps :
1410 - name : Checkout
1511 uses : actions/checkout@v2.0.0
16- - name : Build JS dependencies
17- uses : PrestaShopCorp/github-action-build-js/12@v1.0
18- with :
19- cmd : npm
20- path : ./_dev
12+
2113 - name : Install composer dependencies
2214 run : composer install --no-dev -o
15+
2316 - name : Clean-up project
2417 uses : PrestaShopCorp/github-action-clean-before-deploy@v1.0
18+
2519 - name : Create & upload artifact
2620 uses : actions/upload-artifact@v1
2721 with :
2822 name : ${{ github.event.repository.name }}
2923 path : ../
24+
3025 update_release_draft :
3126 runs-on : ubuntu-latest
3227 needs : [deploy]
33- if : github.event_name == 'push'
28+ if : github.event_name == 'push' && github.event.ref == 'refs/heads/master'
3429 steps :
3530 - name : Download artifact
3631 uses : actions/download-artifact@v1
3732 with :
3833 name : ${{ github.event.repository.name }}
34+
3935 - id : release_info
4036 uses : toolmantim/release-drafter@v5
4137 env :
4238 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+
4340 - name : Prepare for Release
4441 run : |
4542 cd ${{ github.event.repository.name }}
4643 zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }}
44+
4745 - name : Clean existing assets
4846 shell : bash
4947 run : |
5553 done
5654 env :
5755 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56+
5857 - name : Publish to GitHub Release
5958 uses : actions/upload-release-asset@v1.0.1
6059 env :
You can’t perform that action at this time.
0 commit comments