forked from operasoftware/devopera
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.07 KB
/
jekyll.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
name: Jekyll site CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the site in a container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll \
--entrypoint '' \
huli/gulp /bin/bash -c "cd /srv/jekyll && gem install -g && npm install && gulp build:full"
- name: Prepare the deployment package
run: |
zip -r dev-opera.zip appspec.yml dest
- 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: us-west-2
- name: Create AWS CodeDeploy deployment
uses: sourcetoad/[email protected]
with:
aws_region: us-west-2
s3_bucket: dev-opera
s3_folder: latest
archive: dev-opera.zip
codedeploy_name: DevOpera
codedeploy_group: MainBackends