Skip to content

Commit

Permalink
Deployment to AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikL committed Feb 4, 2022
1 parent cf7bfb4 commit 6dd77ec
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 35 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy
on:
push:
branches:
- master
- stage
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- run: zip -9 -x .git/\* -x .github/\* -x .gitignore -x build.js -x README.md -r sabbath-school-reader-latest.zip .
- run: curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip
- run: unzip awscli-bundle.zip
- run: ./awscli-bundle/install -b ~/bin/aws
- run: aws s3 cp sabbath-school-reader-latest.zip s3://sabbath-school`[[ "${{ steps.extract_branch.outputs.branch }}" = "stage" ]] && echo '-stage'`.adventech.io/reader/ --acl "public-read" --region us-east-1 --no-progress
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

Binary file removed deploy-creds.tar.enc
Binary file not shown.
26 changes: 0 additions & 26 deletions package.json

This file was deleted.

0 comments on commit 6dd77ec

Please sign in to comment.