From eabfc34984dee710289aaf372ac6eec229163e0e Mon Sep 17 00:00:00 2001 From: Mario Vitale Date: Fri, 8 Dec 2023 16:25:10 +0100 Subject: [PATCH] Fix artifact path (#403) * Remove serverless artifact upload, it's not packaged to the local disk * Fix permissions for uploaded artifact --- .github/workflows/build-and-deploy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 7d9c4a2..ad4cdfb 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -64,6 +64,9 @@ jobs: with: name: marketplace-build path: dist/ + # Required because of https://github.com/actions/upload-artifact/issues/38 + - name: deploy/set-artifact-permissions + run: chmod +x dist/* - name: deploy/master-branch if: ${{ github.ref_name == 'master' }} env: @@ -82,9 +85,3 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.MM_MARKETPLACE_AWS_ACCESS_KEY_ID_STAGING }} AWS_SECRET_ACCESS_KEY: ${{ secrets.MM_MARKETPLACE_AWS_SECRET_ACCESS_KEY_STAGING }} run: serverless deploy function -f server --stage beta --verbose - - name: deploy/persist-lambda-artifact - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - with: - name: marketplace-lambda-artifact - path: .serverless/mattermost-marketplace.zip - retention-days: 7