This repository was archived by the owner on Jul 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +49
-42
lines changed Expand file tree Collapse file tree 3 files changed +49
-42
lines changed Original file line number Diff line number Diff line change 1+ name : Jekyll site CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+ - name : Build the site in a container
17+ run : |
18+ docker run \
19+ -v ${{ github.workspace }}:/srv/jekyll \
20+ --entrypoint '' \
21+ huli/gulp /bin/bash -c "cd /srv/jekyll && gem install -g && npm install && gulp build:full"
22+ - name : Prepare the deployment package
23+ run : |
24+ zip -r dev-opera.zip appspec.yml dest
25+ - name : Configure AWS Credentials
26+ uses : aws-actions/configure-aws-credentials@v1
27+ with :
28+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
29+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
30+ aws-region : us-west-2
31+ - name : Create AWS CodeDeploy deployment
32+ uses : sourcetoad/aws-codedeploy-action@v1.3.0
33+ with :
34+ aws_region : us-west-2
35+ s3_bucket : dev-opera
36+ s3_folder : latest
37+ archive : dev-opera.zip
38+ codedeploy_name : DevOpera
39+ codedeploy_group : MainBackends
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,3 +5,13 @@ os: linux
55files :
66 - source : dest
77 destination : /var/www/html
8+
9+ branch_config :
10+ master :
11+ deploymentGroupName : MainBackends
12+ deploymentConfig :
13+ revision :
14+ s3Location :
15+ bucket : dev-opera
16+ bundleType : tgz
17+ key : latest/dev-opera.tar.gz
You can’t perform that action at this time.
0 commit comments