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
1 changed file
with
2 additions
and
6 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 |
---|---|---|
|
@@ -21,23 +21,19 @@ jobs: | |
huli/gulp /bin/bash -c "cd /srv/jekyll && gem install -g && npm install && gulp build:full" | ||
- name: Prepare the deployment package | ||
run: | | ||
mkdir _codedeploy | ||
zip -r _codedeploy/dev-opera.zip appspec.yml dest | ||
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: Copy the website to the S3 bucket | ||
run: | | ||
aws s3 cp _codedeploy/dev-opera.zip s3://dev-opera/latest/ | ||
- name: Create AWS CodeDeploy deployment | ||
uses: sourcetoad/[email protected] | ||
with: | ||
aws_region: us-west-2 | ||
s3_bucket: dev-opera | ||
s3_folder: latest | ||
archive: _codedeploy/dev-opera.zip | ||
archive: dev-opera.zip | ||
codedeploy_name: DevOpera | ||
codedeploy_group: MainBackends |