-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 994 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy to GitHub Pages
on:
push:
branches:
- main # main branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Download assets from S3
run: |
mkdir -p ./assets # Ensure this folder exists
aws s3 cp s3://mandelbrot-assets/assets ./assets/ --recursive
- name: Deploy to GitHub Pages
run: |
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
git add . # Corrected the spacing
git commit -m "Deploy from S3" || echo "No changes to commit" # Handle no changes
git push origin main