From 0159cd7977b6434add835618db08c455c20acba1 Mon Sep 17 00:00:00 2001 From: Jerry Dimimitriou Date: Wed, 13 Oct 2021 21:10:32 +0300 Subject: [PATCH] added github actions --- .github/workflows/build-and-deploy-branch.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build-and-deploy-branch.yml diff --git a/.github/workflows/build-and-deploy-branch.yml b/.github/workflows/build-and-deploy-branch.yml new file mode 100644 index 00000000..28eadc18 --- /dev/null +++ b/.github/workflows/build-and-deploy-branch.yml @@ -0,0 +1,22 @@ +name: Build and deploy non-master branch to test-docs +on: + push: + branches-ignore: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v2 + + - name: Build Spec + run: bash ./build.sh + + - name: Deploy on S3 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 sync --acl public-read --region eu-west-1 target/site ${{ secrets.AWS_S3_PATH }}/${GITHUB_REF#refs/heads/}