Skip to content

Commit

Permalink
Merge pull request #22 from masarakki/add-deploy-task
Browse files Browse the repository at this point in the history
add-deploy-task
  • Loading branch information
masarakki authored Jul 15, 2023
2 parents 46cf150 + dfbecaa commit e6f12ff
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: masarakki/docker-alias@v2
with:
image: vvakame/review:5.8
commands: review-pdfmaker
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: rm `bundle exec which review-pdfmaker`
- run: bundle exec rake pdf
env:
REVIEW_CONFIG_FILE: config.ebook.yml
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.BOOK_DEPLOY_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.BOOK_DEPLOY_SECRET_KEY }}
aws-region: us-west-2
- run: aws s3 cp book.pdf s3://np-complete-books/pdf/C95.pdf --acl public-read

0 comments on commit e6f12ff

Please sign in to comment.