diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 920a6cf2..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -compressed/*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/compress-cookbooks.yml b/.github/workflows/compress-cookbooks.yml index e8cad93c..2f434546 100644 --- a/.github/workflows/compress-cookbooks.yml +++ b/.github/workflows/compress-cookbooks.yml @@ -8,14 +8,13 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - name: Compress Cookbooks - run: | - cd .. - tar --exclude='./compressed' -czvf cookbooks.tar.gz -C ${{ github.workspace }} . - mv cookbooks.tar.gz ${{ github.workspace }}/compressed - - name: Commit and push - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git add compressed/cookbooks.tar.gz - git commit -m 'update compressed cookbooks' - git push + run: tar --exclude='cookbooks.tar.gz' -czvf cookbooks.tar.gz -C ${{ github.workspace }} . + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: Upload to S3 + run: aws s3 sync cookbooks.tar.gz s3://ssm.jumbledev.com/cookbooks.tar.gz + diff --git a/compressed/cookbooks.tar.gz b/compressed/cookbooks.tar.gz deleted file mode 100644 index 9ca27894..00000000 --- a/compressed/cookbooks.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bc7214b24a12dfaf8904e24e6daacf18aa04d68f7775a54fbb0f684001f8842 -size 116159095