From 402037b1cb01d19e7fb90ad55ad7f3fa5ec80055 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Wed, 10 Mar 2021 16:12:51 +0000 Subject: [PATCH] Append tag name to plugin zip --- .github/workflows/deploy-to-wordpress.org.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-wordpress.org.yml b/.github/workflows/deploy-to-wordpress.org.yml index 8cef0e0..675a60f 100644 --- a/.github/workflows/deploy-to-wordpress.org.yml +++ b/.github/workflows/deploy-to-wordpress.org.yml @@ -1,4 +1,6 @@ -name: Deploy to WordPress.org +name: Issue new release + +# Action runs when a new release is published. on: release: types: [published] @@ -21,7 +23,7 @@ jobs: - name: Create artifact uses: montudor/action-zip@v0.1.0 with: - args: zip -X -r footnotes.zip . + args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip . #- name: WordPress Plugin Deploy # id: deploy @@ -36,11 +38,11 @@ jobs: uses: actions/upload-artifact@v2 with: name: footnotes - path: dist/footnotes.zip + path: dist/footnotes-${{ github.event.release.tag_name }}.zip - name: Upload to release uses: JasonEtco/upload-to-release@master with: - args: dist/footnotes.zip application/zip + args: dist/footnotes-${{ github.event.release.tag_name }}.zip application/zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}