From 88c6e8a6585c00f0a94e27f1351e77ef18518196 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+joeacarstairs@users.noreply.github.com> Date: Fri, 10 May 2024 21:57:35 +0100 Subject: Moves to DigitalOcean from AWS (#4) * Moves to DigitalOcean from AWS * README * Removes deployment workflow --------- Co-authored-by: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> --- .github/workflows/build-and-deploy.yml | 46 ---------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/build-and-deploy.yml (limited to '.github/workflows') diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml deleted file mode 100644 index d2b1374..0000000 --- a/.github/workflows/build-and-deploy.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Build and deploy - -on: - push: - branches: ["main"] - workflow_dispatch: - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "deploy" - cancel-in-progress: false - -jobs: - build: - name: Build with Astro and deploy to S3 - runs-on: ubuntu-latest - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - S3_BUCKET_SUFFIX: ${{ secrets.S3_BUCKET_SUFFIX }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "npm" - - name: Install dependencies - run: npm ci - - name: Build with Astro - run: npm run build - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-region: us-east-1 - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - - name: Sync S3 bucket - run: | - aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID - aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY - aws configure set region eu-west-2 - aws s3 sync ./website/dist/ "s3://joeac.net-$S3_BUCKET_SUFFIX" --delete - -- cgit v1.2.3