diff options
| author | Joe Carstairs <65492573+joeacarstairs@users.noreply.github.com> | 2024-05-10 21:57:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-10 21:57:35 +0100 |
| commit | 88c6e8a6585c00f0a94e27f1351e77ef18518196 (patch) | |
| tree | 18c7485fddabdedd7c2b7b57844c22cf9c1b5954 /.github/workflows | |
| parent | efb931b1b8e3d0d0be3665304a34b2b2b1b5a90e (diff) | |
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>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build-and-deploy.yml | 46 |
1 files changed, 0 insertions, 46 deletions
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 - |
