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

Commit

Permalink
Build Jekyll on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
nowaktz committed Feb 7, 2022
1 parent 3d19891 commit c89a560
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 42 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ os: linux
files:
- source: dest
destination: /var/www/html

branch_config:
master:
deploymentGroupName: MainBackends
deploymentConfig:
revision:
s3Location:
bucket: dev-opera
bundleType: tgz
key: latest/dev-opera.tar.gz

0 comments on commit c89a560

Please sign in to comment.