Commit 20b38ee 1 parent 49572a3 commit 20b38ee Copy full SHA for 20b38ee
File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create ZIP Release
2
+
3
+ on :
4
+ release :
5
+ types : [created, edited]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Set ZIP filename
15
+ id : branch
16
+ run : |
17
+ echo ::set-output name=PROJECT_NAME::${GITHUB_REPOSITORY#*/}
18
+ echo ::set-output name=ZIP_FILE::${GITHUB_REPOSITORY#*/}_${GITHUB_REF#refs/tags/}.zip
19
+
20
+ - name : Composer Install
21
+ run : composer install --no-dev --ignore-platform-reqs
22
+
23
+ - name : Make Zip ${{ steps.branch.outputs.ZIP_FILE }}
24
+ run : |
25
+ cd ..
26
+ zip -r ${{ steps.branch.outputs.ZIP_FILE }} ${{ steps.branch.outputs.PROJECT_NAME }} -x '*/.git/*'
27
+
28
+ - name : Upload Asset
29
+ uses : ncipollo/release-action@v1
30
+ with :
31
+ artifacts : ../${{ steps.branch.outputs.ZIP_FILE }}
32
+ token : ${{ secrets.GITHUB_TOKEN }}
33
+ artifactErrorsFailBuild : true
34
+ allowUpdates : true
35
+ omitBodyDuringUpdate : true
36
+ omitNameDuringUpdate : true
37
+ omitPrereleaseDuringUpdate : true
You can’t perform that action at this time.
0 commit comments