-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (71 loc) · 1.77 KB
/
deploy-to-aws.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# AWS IAM JSON:
# {
# "Statement": [
# {
# "Action": "s3:*",
# "Resource": [
# "arn:aws:s3:::craig.mayhew.io",
# "arn:aws:s3:::craig.mayhew.io/*"
# ],
# "Effect": "Allow"
# },
# {
# "Action": "cloudfront:CreateInvalidation",
# "Resource": [
# "arn:aws:cloudfront::ACCOUNTID:distribution/DISTRIBUTIONID"
# ],
# "Effect": "Allow"
# },
# {
# "Effect": "Allow",
# "Action": [
# "cloudfront:ListDistributions"
# ],
# "Resource": "*"
# },{
# "Effect": "Allow",
# "Action": [
# "route53:ChangeResourceRecordSets",
# "route53:ListResourceRecordSets"
# ],
# "Resource": "arn:aws:route53:::hostedzone/HOSTNAME"
# },
# {
# "Effect": "Allow",
# "Action": [
# "route53:GetChange"
# ],
# "Resource": "arn:aws:route53:::change/*"
# },
# {
# "Effect": "Allow",
# "Action": "route53:ListHostedZonesByName",
# "Resource": "*"
# }
# ]
#}
# removed for the time being in favour of cloudflar
#name: Deploy to AWS
#
#on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
#
#jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@86f86b36ef15e6570752e7175f451a512eac206b
# - run: php --version
# - run: |
# chmod +x composer.phar
# ./composer.phar install
# - run: |
# php tools/build.php
# php tools/uploadToS3.php
# - run: echo "Deployed to S3"