File tree Expand file tree Collapse file tree 1 file changed +2
-29
lines changed Expand file tree Collapse file tree 1 file changed +2
-29
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
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
9
+ name : Build release
10
+ uses : ColdTrick/.github/.github/workflows/create-zip-release.yml@master
You can’t perform that action at this time.
0 commit comments