Skip to content

Commit

Permalink
Merge pull request #4 from masarakki/add-deploy
Browse files Browse the repository at this point in the history
add-deploy
  • Loading branch information
masarakki authored Aug 15, 2023
2 parents 390ce2f + 7d3d987 commit 6eb001b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: deploy
on:
pull_request_target:
types: closed
permissions:
id-token: write
contents: read
jobs:
deploy:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker run -v .:/src -w /src vvakame/review:5.8 make all
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::009775665146:role/publish-np-complete-book-role
aws-region: us-west-2
- run: aws s3 cp c81.pdf s3://np-complete-books/pdf/C81.pdf --acl public-read

0 comments on commit 6eb001b

Please sign in to comment.