From bdacd17989630facd5eac8a83d2938191bf2ae1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Ramirez=20Giraldo?= <52968528+julianramirez2@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:24:46 -0500 Subject: [PATCH] feat: created new workflow for release zip, current version --- .github/workflows/upload-release-zip.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/upload-release-zip.yml diff --git a/.github/workflows/upload-release-zip.yml b/.github/workflows/upload-release-zip.yml new file mode 100644 index 0000000..68945e6 --- /dev/null +++ b/.github/workflows/upload-release-zip.yml @@ -0,0 +1,38 @@ +name: Build & Upload zip + +# Only trigger, when the build workflow succeeded +on: + workflow_run: + workflows: ["Continuous Integration"] + types: + - completed + +jobs: + upload_zip: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.WC_PAT }} + + - name: Install Composer dependencies + uses: "ramsey/composer-install@v2" + with: + composer-options: "--no-dev" + + - name: Archive Release + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'openedx-ecommerce.zip' + exclusions: '*.git*' + + - name: Upload zip to latest release + uses: xresloader/upload-to-github-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.WC_PAT }} + with: + file: "openedx-ecommerce.zip" + update_latest_release: true + draft: false