From d490df0f4fa16b2da36a511538bb650ced717f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20F=C3=B6ldesi?= Date: Sat, 25 May 2024 19:12:26 +0200 Subject: [PATCH 1/2] ci: added workflow --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 0000000..46ed812 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Create release + +on: + push: + tags: + - "*" + +jobs: + create_release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Package plugin + run: | + zip -r opencart_gopay-${{ github.ref_name }}.ocmod.zip * + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: opencart_gopay-${{ github.ref_name }}.ocmod.zip From 0d45324c6b653f7225dffa62c52db1289187e6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20F=C3=B6ldesi?= Date: Sat, 25 May 2024 19:18:35 +0200 Subject: [PATCH 2/2] ci: fix filename --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46ed812..357c9bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: uses: actions/checkout@v4 - name: Package plugin run: | - zip -r opencart_gopay-${{ github.ref_name }}.ocmod.zip * + zip -r opencart_gopay.ocmod.zip * - name: Release uses: softprops/action-gh-release@v2 with: - files: opencart_gopay-${{ github.ref_name }}.ocmod.zip + files: opencart_gopay.ocmod.zip