From 55ae25dbfdd0af40f748535a5bd473a69d9cfcc4 Mon Sep 17 00:00:00 2001 From: Fabian Wolf Date: Wed, 22 Feb 2023 12:39:14 +0100 Subject: [PATCH] Add release workflow --- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..04da28ff2051 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Pack Release Zip +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Remove GitHub CI/CD + run: rm -r .github/ + - name: Remove gitignore + run: rm .gitignore + - name: Remove CI + run: rm -r CI/ + - name: Remove tests + run: rm -r tests/ + - name: Remove test + run: rm test/ + - name: Remove Dicto + run: rm -r dicto/ + - name: Remove babelrc + run: rm .babelrc.json + - name: Remove eslintrc + run: rm .eslintrc.json + - name: Install Dependencies + uses: php-actions/composer@v6 + with: + dev: no + args: + - name: Pack Release Zip + uses: montudor/action-zip@v1 + with: + args: zip -ry ILIAS-${{ github.event.release.tag_name }}.zip . + - name: Pack Release Tar + uses: a7ul/tar-action@v1.1.0 + id: compress + with: + command: zcvf + outPath: ILIAS-${{ github.event.release.tag_name }}.tar.gz