set up auto codedeploy

pull/3/head
kevin zhuang 4 years ago
parent 6efd6a06f9
commit 3ff7947cec

@ -0,0 +1,28 @@
name: AWS codebuild
on:
push:
branches:
- master
defaults:
run:
shell: bash
working-directory: .
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: ap-southeast-2
- name: Run CodeBuild
uses: aws-actions/aws-codebuild-run-project@v1.0.0
with:
project-name: dotbare

@ -49,7 +49,6 @@ if [[ $# -eq 0 ]]; then
exit 0
fi
# shellcheck disable=SC2199
[[ "$@" == 'add --all' ]] && \
echo 'If you intend to stage all modified file, run dotbare add -u' && \
echo "dotbare disabled add --all option as this will stage every single file in ${DOTBARE_TREE}" && \

Loading…
Cancel
Save