Skip to content

Commit

Permalink
chore: replaced zip release with template
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed May 17, 2023
1 parent eca4c92 commit f1eec84
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/create-zip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,5 @@ on:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set ZIP filename
id: branch
run: |
echo ::set-output name=PROJECT_NAME::${GITHUB_REPOSITORY#*/}
echo ::set-output name=ZIP_FILE::${GITHUB_REPOSITORY#*/}_${GITHUB_REF#refs/tags/}.zip
- name: Composer Install
run: composer install --no-dev --ignore-platform-reqs

- name: Make Zip ${{ steps.branch.outputs.ZIP_FILE }}
run: |
cd ..
zip -r ${{ steps.branch.outputs.ZIP_FILE }} ${{ steps.branch.outputs.PROJECT_NAME }} -x '*/.git/*'
- name: Upload Asset
uses: ncipollo/release-action@v1
with:
artifacts: ../${{ steps.branch.outputs.ZIP_FILE }}
token: ${{ secrets.GITHUB_TOKEN }}
artifactErrorsFailBuild: true
allowUpdates: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
name: Build release
uses: ColdTrick/.github/.github/workflows/create-zip-release.yml@master

0 comments on commit f1eec84

Please sign in to comment.