From 4aedca02e1d02453358caecca052f0188df9d321 Mon Sep 17 00:00:00 2001 From: Bastian Date: Mon, 11 Jan 2021 14:36:52 +0100 Subject: [PATCH] Add Github Deploy Action --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..cff6e03 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Deploy Technology Radar + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v2 + with: + node-version: '12' + - run: yarn + - run: yarn aoe_technology_radar + - uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read + env: + AWS_S3_BUCKET: 'techradar.aoe.com' + AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.ACCESS_SECRET }} + AWS_REGION: 'eu-central-1' + SOURCE_DIR: 'build'