From f1eec84137c6af2f23a701a96f47942023b8a05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jer=C3=B4me=20Bakker?= Date: Wed, 17 May 2023 10:30:27 +0200 Subject: [PATCH] chore: replaced zip release with template --- .github/workflows/create-zip-release.yml | 31 ++---------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.github/workflows/create-zip-release.yml b/.github/workflows/create-zip-release.yml index c5255c0..d7b383b 100644 --- a/.github/workflows/create-zip-release.yml +++ b/.github/workflows/create-zip-release.yml @@ -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