From 6a9d3bb4bed98e546336c191ab5e096b7cef0a1d Mon Sep 17 00:00:00 2001 From: caiocsgomes Date: Sat, 16 Mar 2024 15:34:45 +0200 Subject: [PATCH] removing submodules (a pain) --- .github/workflows/deploy.yaml | 45 +++++++++++++---------------------- .gitmodules | 4 ---- README.md | 2 +- 3 files changed, 18 insertions(+), 33 deletions(-) delete mode 100644 .gitmodules diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index ea68023..0112328 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,6 +1,5 @@ # Workflow name name: S3 Deploy - on: workflow_dispatch: push: @@ -9,11 +8,9 @@ on: - '.github/workflows/deploy.yml' branches: - master - permissions: - id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout - + id-token: write # This is required for requesting the JWT + contents: read # This is required for actions/checkout jobs: build-and-deploy: runs-on: ubuntu-latest @@ -21,27 +18,20 @@ jobs: AWS_REGION: sa-east-1 BUCKET_NAME: caiogomes.me steps: - - name: Install hugo - run: sudo apt install hugo - - - name: configure aws credentials - uses: aws-actions/configure-aws-credentials@v3.0.1 - with: - role-to-assume: ${{ secrets.AWS_ROLE_ARN }} - role-session-name: GitHub_to_AWS_via_FederatedOIDC - aws-region: ${{ env.AWS_REGION }} - - - name: Checkout repository - uses: actions/checkout@v3 - with: - submodules: 'true' - - - name: Build - run: cd app/ && hugo - - - name: Upload files to S3 - run: aws s3 sync app/public/ s3://${{ env.BUCKET_NAME }}/ --exact-timestamps --delete - + - name: Install hugo + run: sudo apt install hugo + - name: configure aws credentials + uses: aws-actions/configure-aws-credentials@v3.0.1 + with: + role-to-assume: ${{ secrets.AWS_ROLE_ARN }} + role-session-name: GitHub_to_AWS_via_FederatedOIDC + aws-region: ${{ env.AWS_REGION }} + - name: Checkout repository + uses: actions/checkout@v3 + - name: Build + run: cd app/ && hugo + - name: Upload files to S3 + run: aws s3 sync app/public/ s3://${{ env.BUCKET_NAME }}/ --exact-timestamps --delete create-cloudfront-invalidation: needs: build-and-deploy runs-on: ubuntu-latest @@ -55,6 +45,5 @@ jobs: role-to-assume: ${{ secrets.AWS_ROLE_ARN }} role-session-name: GitHub_to_AWS_via_FederatedOIDC aws-region: ${{ env.AWS_REGION }} - - name: Invalidate clodufront distribution - run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" \ No newline at end of file + run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 32641c4..0000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "app/themes/PaperMod"] - path = app/themes/PaperMod - url = https://github.com/adityatelange/hugo-PaperMod.git - branch = master diff --git a/README.md b/README.md index cfc9e2a..0c245d1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ https://gohugo.io/installation/ 2\. Clone the repo ```bash -git clone --recurse-submodules https://github.com/caiocsgomes/caiogomes.me.git +git clone https://github.com/caiocsgomes/caiogomes.me.git ``` 3\. Change to the app folder