Skip to content

Commit 5debadb

Browse files
authored
Merge pull request #56 from Quetzacoalt91/errors-in-ci
Fix reported error in CI
2 parents d0ac406 + 0a2571d commit 5debadb

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Build & Release draft
22

3-
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- master
3+
on: [push, pull_request]
84

95
jobs:
106
deploy:
@@ -13,37 +9,39 @@ jobs:
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: |
@@ -55,6 +53,7 @@ jobs:
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:

0 commit comments

Comments
 (0)