From 7d3d98719e180afd71fef13c6830dab1aadeaeb5 Mon Sep 17 00:00:00 2001 From: masarakki Date: Wed, 16 Aug 2023 01:58:24 +0900 Subject: [PATCH] add-deploy --- .github/workflows/deploy.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..dbd92ad --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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