This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters