From 0d669f5fc488c825e9e75663a777c40e774a4774 Mon Sep 17 00:00:00 2001 From: Biplav Subedi Date: Mon, 16 May 2022 13:46:13 -0500 Subject: [PATCH 1/3] Updated: Node version for deployment. --- .github/workflows/deploy.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c5b66943..a59304a3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,24 +19,12 @@ jobs: version: 1 command: install args: --no-dev + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '14.x' - name: Build run: | npm install npm run build - - name: WordPress Plugin Deploy - id: deploy - uses: 10up/action-wordpress-plugin-deploy@stable - with: - generate-zip: true - env: - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip - asset_name: ${{ github.event.repository.name }}.zip - asset_content_type: application/zip From 10f5485d54e236bcbb73d51cfdd6d7033058a775 Mon Sep 17 00:00:00 2001 From: Biplav Subedi Date: Mon, 16 May 2022 13:51:40 -0500 Subject: [PATCH 2/3] Updated: removed checkout v3 addition. --- .github/workflows/deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a59304a3..8cb546dd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,6 @@ jobs: version: 1 command: install args: --no-dev - - uses: actions/checkout@v3 - name: Use Node.js uses: actions/setup-node@v3 with: From 8083797ad1ee95c212c7f23bb5f5cb42f3a05b3d Mon Sep 17 00:00:00 2001 From: Biplav Subedi Date: Mon, 16 May 2022 13:59:11 -0500 Subject: [PATCH 3/3] Updated: Added the wp repo github action on deploy. --- .github/workflows/deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8cb546dd..7c4cdcce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,3 +27,20 @@ jobs: run: | npm install npm run build + - name: WordPress Plugin Deploy + id: deploy + uses: 10up/action-wordpress-plugin-deploy@stable + with: + generate-zip: true + env: + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + - name: Upload release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip + asset_name: ${{ github.event.repository.name }}.zip + asset_content_type: application/zip