Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit c89a560

Browse files
committed
Build Jekyll on GH
1 parent 3d19891 commit c89a560

File tree

3 files changed

+49
-42
lines changed

3 files changed

+49
-42
lines changed

.github/workflows/jekyll.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

.travis.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

appspec.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@ os: linux
55
files:
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

0 commit comments

Comments
 (0)