Skip to content

Commit

Permalink
Updates to build steps for S3Copy function
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsanjaffery committed May 16, 2020
1 parent fb2f35a commit bef51b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:
prerelease: false
# Package and Upload Archive
- name: Pre-Package Copy Function
run: cd source/witch/ && mkdir nodejs && npm install --prefix nodejs mime-types && cp witch.js nodejs/node_modules/ && zip -r ../../witch.zip nodejs && cd ../../
run: cd source/witch/ && npm install --prefix nodejs mime-types && cp witch.js nodejs/node_modules/ && zip -r ../../witch.zip nodejs && cd ../../
- name: Pre-Package Function
run: cd source/secured-headers/ && zip -r ../../s-headers.zip index.js && cd ../../
- name: Package Release
run: zip -r packaged.zip -@ < ci/include.lst
# - name: Upload Release
# run: aws s3 cp packaged.zip s3://$CFN_BUCKET/amazon-cloudfront-secure-static-site/v${{ env.THIS_VERSION }}/amazon-cloudfront-secure-static-site.zip
# env:
# CFN_BUCKET: ${{ secrets.CFN_BUCKET }}
- name: Upload Release
run: aws s3 cp packaged.zip s3://$CFN_BUCKET/amazon-cloudfront-secure-static-site/v${{ env.THIS_VERSION }}/amazon-cloudfront-secure-static-site.zip
env:
CFN_BUCKET: ${{ secrets.CFN_BUCKET }}
4 changes: 2 additions & 2 deletions templates/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AWSTemplateFormatVersion: 2010-09-09
Description: ACFS3 - S3 Static site with CF and ACM (uksb-1qnk6ni7b) (version:v0.4)
Description: ACFS3 - S3 Static site with CF and ACM (uksb-1qnk6ni7b) (version:v0.5)

Metadata:
AWS::CloudFormation::Interface:
Expand All @@ -13,7 +13,7 @@ Metadata:
Mappings:
Solution:
Constants:
Version: 'v0.4'
Version: 'v0.5'

Parameters:
SubDomain:
Expand Down

0 comments on commit bef51b9

Please sign in to comment.