From 9705ea08ce36c0e318bbd09ee754728adbf8f2e9 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Sat, 19 Jun 2021 10:20:11 +0100 Subject: [PATCH] ci: add artifact passing --- .github/workflows/release-handler.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-handler.yml b/.github/workflows/release-handler.yml index ba7594b..55bb1f3 100644 --- a/.github/workflows/release-handler.yml +++ b/.github/workflows/release-handler.yml @@ -25,10 +25,16 @@ jobs: - name: Build Plugin run: | composer run build - - - name: Rename dist/ folder + + - name: Rename Plugin folder run: | mv dist/ footnotes/ + + - name: Upload Plugin artifact + uses: actions/upload-artifact@v2 + with: + name: footnotes-${{ github.event.release.tag_name }} + path: footnotes create_archive: name: Create an archive for the release and add it to GitHub @@ -36,17 +42,22 @@ jobs: needs: build_plugin steps: + - name: Download Plugin artifact + uses: actions/download-artifact@v2 + with: + name: footnotes-${{ github.event.release.tag_name }} + - name: Create release archive uses: montudor/action-zip@v0.1.0 with: args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip footnotes - +""" - name: Upload archive as artifact uses: actions/upload-artifact@v2 with: name: footnotes-${{ github.event.release.tag_name }} path: footnotes-${{ github.event.release.tag_name }}.zip - +""" - name: Upload archive to release uses: JasonEtco/upload-to-release@master with: @@ -61,6 +72,11 @@ jobs: needs: create_archive steps: + - name: Download Plugin artifact + uses: actions/download-artifact@v2 + with: + name: footnotes-${{ github.event.release.tag_name }} + - name: Deploy release to Wordpress.org id: deploy uses: 10up/action-wordpress-plugin-deploy@stable