Skip to content

Commit c39a6e7

Browse files
committed
chore: replaced zip release with template
1 parent b6f58fe commit c39a6e7

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

.github/workflows/create-zip-release.yml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,5 @@ on:
66

77
jobs:
88
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

0 commit comments

Comments
 (0)